Class VkExternalMemoryProperties
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkExternalMemoryProperties
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkExternalMemoryProperties.Buffer
public sealed class VkExternalMemoryProperties
extends GroupType
permits VkExternalMemoryProperties.Buffer
Layout
struct VkExternalMemoryProperties {
((uint32_t) VkFlags) VkExternalMemoryFeatureFlags externalMemoryFeatures;
((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes;
((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags compatibleHandleTypes;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkExternalMemoryProperties
.static final MemoryLayout
The memory layout ofcompatibleHandleTypes
.static final MemoryLayout
The memory layout ofexportFromImportedHandleTypes
.static final MemoryLayout
The memory layout ofexternalMemoryFeatures
.static final long
The byte offset ofcompatibleHandleTypes
.static final long
The byte offset ofexportFromImportedHandleTypes
.static final long
The byte offset ofexternalMemoryFeatures
.static final VarHandle
TheVarHandle
ofcompatibleHandleTypes
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofexportFromImportedHandleTypes
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofexternalMemoryFeatures
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkExternalMemoryProperties
(MemorySegment segment) CreatesVkExternalMemoryProperties
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkExternalMemoryProperties
alloc
(SegmentAllocator allocator) Allocates aVkExternalMemoryProperties
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkExternalMemoryProperties
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.int
ReturnscompatibleHandleTypes
.compatibleHandleTypes
(int value) SetscompatibleHandleTypes
with the given value.static int
compatibleHandleTypes
(MemorySegment segment, long index) ReturnscompatibleHandleTypes
at the given index.static void
compatibleHandleTypes
(MemorySegment segment, long index, int value) SetscompatibleHandleTypes
with the given value at the given index.Copies from the given source.int
ReturnsexportFromImportedHandleTypes
.exportFromImportedHandleTypes
(int value) SetsexportFromImportedHandleTypes
with the given value.static int
exportFromImportedHandleTypes
(MemorySegment segment, long index) ReturnsexportFromImportedHandleTypes
at the given index.static void
exportFromImportedHandleTypes
(MemorySegment segment, long index, int value) SetsexportFromImportedHandleTypes
with the given value at the given index.int
ReturnsexternalMemoryFeatures
.externalMemoryFeatures
(int value) SetsexternalMemoryFeatures
with the given value.static int
externalMemoryFeatures
(MemorySegment segment, long index) ReturnsexternalMemoryFeatures
at the given index.static void
externalMemoryFeatures
(MemorySegment segment, long index, int value) SetsexternalMemoryFeatures
with the given value at the given index.of
(MemorySegment segment) CreatesVkExternalMemoryProperties
with the given segment.static VkExternalMemoryProperties
ofNative
(MemorySegment segment) CreatesVkExternalMemoryProperties
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkExternalMemoryProperties
with the given segment.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkExternalMemoryProperties
. -
OFFSET_externalMemoryFeatures
public static final long OFFSET_externalMemoryFeaturesThe byte offset ofexternalMemoryFeatures
. -
LAYOUT_externalMemoryFeatures
The memory layout ofexternalMemoryFeatures
. -
VH_externalMemoryFeatures
-
OFFSET_exportFromImportedHandleTypes
public static final long OFFSET_exportFromImportedHandleTypesThe byte offset ofexportFromImportedHandleTypes
. -
LAYOUT_exportFromImportedHandleTypes
The memory layout ofexportFromImportedHandleTypes
. -
VH_exportFromImportedHandleTypes
-
OFFSET_compatibleHandleTypes
public static final long OFFSET_compatibleHandleTypesThe byte offset ofcompatibleHandleTypes
. -
LAYOUT_compatibleHandleTypes
The memory layout ofcompatibleHandleTypes
. -
VH_compatibleHandleTypes
-
-
Constructor Details
-
VkExternalMemoryProperties
CreatesVkExternalMemoryProperties
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkExternalMemoryProperties
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkExternalMemoryProperties
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkExternalMemoryProperties
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkExternalMemoryProperties
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkExternalMemoryProperties
-
alloc
Allocates aVkExternalMemoryProperties
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkExternalMemoryProperties
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
externalMemoryFeatures
ReturnsexternalMemoryFeatures
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
externalMemoryFeatures
at the given index
-
externalMemoryFeatures
public int externalMemoryFeatures()ReturnsexternalMemoryFeatures
.- Returns:
externalMemoryFeatures
-
externalMemoryFeatures
SetsexternalMemoryFeatures
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
externalMemoryFeatures
SetsexternalMemoryFeatures
with the given value.- Parameters:
value
- the value- Returns:
this
-
exportFromImportedHandleTypes
ReturnsexportFromImportedHandleTypes
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
exportFromImportedHandleTypes
at the given index
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()ReturnsexportFromImportedHandleTypes
.- Returns:
exportFromImportedHandleTypes
-
exportFromImportedHandleTypes
SetsexportFromImportedHandleTypes
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
exportFromImportedHandleTypes
SetsexportFromImportedHandleTypes
with the given value.- Parameters:
value
- the value- Returns:
this
-
compatibleHandleTypes
ReturnscompatibleHandleTypes
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
compatibleHandleTypes
at the given index
-
compatibleHandleTypes
public int compatibleHandleTypes()ReturnscompatibleHandleTypes
.- Returns:
compatibleHandleTypes
-
compatibleHandleTypes
SetscompatibleHandleTypes
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
compatibleHandleTypes
SetscompatibleHandleTypes
with the given value.- Parameters:
value
- the value- Returns:
this
-