Class VkExternalMemoryPropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkExternalMemoryPropertiesKHR
- All Implemented Interfaces:
Addressable
Represents VkExternalMemoryPropertiesKHR.
Layout
struct VkExternalMemoryPropertiesKHR {
((uint32_t) VkFlags) VkExternalMemoryFeatureFlags externalMemoryFeatures;
((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes;
((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags compatibleHandleTypes;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkExternalMemoryPropertiesKHR.static final MemoryLayoutThe memory layout ofcompatibleHandleTypes.static final MemoryLayoutThe memory layout ofexportFromImportedHandleTypes.static final MemoryLayoutThe memory layout ofexternalMemoryFeatures.static final longThe byte offset ofcompatibleHandleTypes.static final longThe byte offset ofexportFromImportedHandleTypes.static final longThe byte offset ofexternalMemoryFeatures.static final VarHandleTheVarHandleofcompatibleHandleTypesof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofexportFromImportedHandleTypesof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofexternalMemoryFeaturesof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkExternalMemoryPropertiesKHR(MemorySegment segment, long elementCount) CreatesVkExternalMemoryPropertiesKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkExternalMemoryPropertiesKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkExternalMemoryPropertiesKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkExternalMemoryPropertiesKHR.asSlice(long index, long count) Creates a slice ofVkExternalMemoryPropertiesKHR.at(long index, Consumer<VkExternalMemoryPropertiesKHR> func) VisitsVkExternalMemoryPropertiesKHRbuffer at the given index.intReturnscompatibleHandleTypes.compatibleHandleTypes(int value) SetscompatibleHandleTypeswith the given value.static intcompatibleHandleTypes(MemorySegment segment, long index) ReturnscompatibleHandleTypesat the given index.static voidcompatibleHandleTypes(MemorySegment segment, long index, int value) SetscompatibleHandleTypeswith the given value at the given index.intcompatibleHandleTypesAt(long index) ReturnscompatibleHandleTypesat the given index.compatibleHandleTypesAt(long index, int value) SetscompatibleHandleTypeswith the given value at the given index.Copies from the given source.intReturnsexportFromImportedHandleTypes.exportFromImportedHandleTypes(int value) SetsexportFromImportedHandleTypeswith the given value.static intexportFromImportedHandleTypes(MemorySegment segment, long index) ReturnsexportFromImportedHandleTypesat the given index.static voidexportFromImportedHandleTypes(MemorySegment segment, long index, int value) SetsexportFromImportedHandleTypeswith the given value at the given index.intexportFromImportedHandleTypesAt(long index) ReturnsexportFromImportedHandleTypesat the given index.exportFromImportedHandleTypesAt(long index, int value) SetsexportFromImportedHandleTypeswith the given value at the given index.intReturnsexternalMemoryFeatures.externalMemoryFeatures(int value) SetsexternalMemoryFeatureswith the given value.static intexternalMemoryFeatures(MemorySegment segment, long index) ReturnsexternalMemoryFeaturesat the given index.static voidexternalMemoryFeatures(MemorySegment segment, long index, int value) SetsexternalMemoryFeatureswith the given value at the given index.intexternalMemoryFeaturesAt(long index) ReturnsexternalMemoryFeaturesat the given index.externalMemoryFeaturesAt(long index, int value) SetsexternalMemoryFeatureswith the given value at the given index.of(MemorySegment segment) CreatesVkExternalMemoryPropertiesKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkExternalMemoryPropertiesKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkExternalMemoryPropertiesKHRwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkExternalMemoryPropertiesKHR. -
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
-
VkExternalMemoryPropertiesKHR
CreatesVkExternalMemoryPropertiesKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkExternalMemoryPropertiesKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkExternalMemoryPropertiesKHRwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkExternalMemoryPropertiesKHRwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkExternalMemoryPropertiesKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkExternalMemoryPropertiesKHR
-
alloc
Allocates aVkExternalMemoryPropertiesKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkExternalMemoryPropertiesKHR
-
copyFrom
Copies from the given source.- Parameters:
src- the source- Returns:
this
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count- the new count- Returns:
- the reinterpreted buffer
-
externalMemoryFeatures
ReturnsexternalMemoryFeaturesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
externalMemoryFeaturesat the given index
-
externalMemoryFeatures
public int externalMemoryFeatures()ReturnsexternalMemoryFeatures.- Returns:
externalMemoryFeatures
-
externalMemoryFeatures
SetsexternalMemoryFeatureswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
externalMemoryFeatures
SetsexternalMemoryFeatureswith the given value.- Parameters:
value- the value- Returns:
this
-
exportFromImportedHandleTypes
ReturnsexportFromImportedHandleTypesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
exportFromImportedHandleTypesat the given index
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()ReturnsexportFromImportedHandleTypes.- Returns:
exportFromImportedHandleTypes
-
exportFromImportedHandleTypes
SetsexportFromImportedHandleTypeswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
exportFromImportedHandleTypes
SetsexportFromImportedHandleTypeswith the given value.- Parameters:
value- the value- Returns:
this
-
compatibleHandleTypes
ReturnscompatibleHandleTypesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
compatibleHandleTypesat the given index
-
compatibleHandleTypes
public int compatibleHandleTypes()ReturnscompatibleHandleTypes.- Returns:
compatibleHandleTypes
-
compatibleHandleTypes
SetscompatibleHandleTypeswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
compatibleHandleTypes
SetscompatibleHandleTypeswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkExternalMemoryPropertiesKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkExternalMemoryPropertiesKHR
-
asSlice
Creates a slice ofVkExternalMemoryPropertiesKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkExternalMemoryPropertiesKHR
-
at
VisitsVkExternalMemoryPropertiesKHRbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
externalMemoryFeaturesAt
public int externalMemoryFeaturesAt(long index) ReturnsexternalMemoryFeaturesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
externalMemoryFeaturesat the given index
-
externalMemoryFeaturesAt
SetsexternalMemoryFeatureswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
exportFromImportedHandleTypesAt
public int exportFromImportedHandleTypesAt(long index) ReturnsexportFromImportedHandleTypesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
exportFromImportedHandleTypesat the given index
-
exportFromImportedHandleTypesAt
SetsexportFromImportedHandleTypeswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
compatibleHandleTypesAt
public int compatibleHandleTypesAt(long index) ReturnscompatibleHandleTypesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
compatibleHandleTypesat the given index
-
compatibleHandleTypesAt
SetscompatibleHandleTypeswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-