Class VkExternalMemoryProperties
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkExternalMemoryProperties
- All Implemented Interfaces:
Addressable
Layout
struct VkExternalMemoryProperties {
((uint32_t) VkFlags) VkExternalMemoryFeatureFlags externalMemoryFeatures;
((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes;
((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags compatibleHandleTypes;
};
-
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, long elementCount) CreatesVkExternalMemoryProperties
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkExternalMemoryProperties
alloc
(SegmentAllocator allocator) Allocates aVkExternalMemoryProperties
with the given segment allocator.static VkExternalMemoryProperties
alloc
(SegmentAllocator allocator, long count) Allocates aVkExternalMemoryProperties
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkExternalMemoryProperties
.asSlice
(long index, long count) Creates a slice ofVkExternalMemoryProperties
.at
(long index, Consumer<VkExternalMemoryProperties> func) VisitsVkExternalMemoryProperties
buffer at the given index.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.int
compatibleHandleTypesAt
(long index) ReturnscompatibleHandleTypes
at the given index.compatibleHandleTypesAt
(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
exportFromImportedHandleTypesAt
(long index) ReturnsexportFromImportedHandleTypes
at the given index.exportFromImportedHandleTypesAt
(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.int
externalMemoryFeaturesAt
(long index) ReturnsexternalMemoryFeatures
at the given index.externalMemoryFeaturesAt
(long index, int value) SetsexternalMemoryFeatures
with the given value at the given index.static VkExternalMemoryProperties
of
(MemorySegment segment) CreatesVkExternalMemoryProperties
with the given segment.static VkExternalMemoryProperties
ofNative
(MemorySegment segment) CreatesVkExternalMemoryProperties
with the given segment.static VkExternalMemoryProperties
ofNative
(MemorySegment segment, long count) CreatesVkExternalMemoryProperties
with the given segment.reinterpret
(long count) Reinterprets this buffer with the given count.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 segmentelementCount
- the element count of this struct buffer
-
-
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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted 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
-
asSlice
Creates a slice ofVkExternalMemoryProperties
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkExternalMemoryProperties
-
asSlice
Creates a slice ofVkExternalMemoryProperties
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkExternalMemoryProperties
-
at
VisitsVkExternalMemoryProperties
buffer 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) ReturnsexternalMemoryFeatures
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
externalMemoryFeatures
at the given index
-
externalMemoryFeaturesAt
SetsexternalMemoryFeatures
with 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) ReturnsexportFromImportedHandleTypes
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
exportFromImportedHandleTypes
at the given index
-
exportFromImportedHandleTypesAt
SetsexportFromImportedHandleTypes
with 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) ReturnscompatibleHandleTypes
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
compatibleHandleTypes
at the given index
-
compatibleHandleTypesAt
SetscompatibleHandleTypes
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-