Class VkDrmFormatModifierPropertiesEXT
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.ext.struct.VkDrmFormatModifierPropertiesEXT
- All Implemented Interfaces:
Addressable
Layout
struct VkDrmFormatModifierPropertiesEXT {
uint64_t drmFormatModifier;
uint32_t drmFormatModifierPlaneCount;
((uint32_t) VkFlags) VkFormatFeatureFlags drmFormatModifierTilingFeatures;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkDrmFormatModifierPropertiesEXT
.static final MemoryLayout
The memory layout ofdrmFormatModifier
.static final MemoryLayout
The memory layout ofdrmFormatModifierPlaneCount
.static final MemoryLayout
The memory layout ofdrmFormatModifierTilingFeatures
.static final long
The byte offset ofdrmFormatModifier
.static final long
The byte offset ofdrmFormatModifierPlaneCount
.static final long
The byte offset ofdrmFormatModifierTilingFeatures
.static final VarHandle
TheVarHandle
ofdrmFormatModifier
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofdrmFormatModifierPlaneCount
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofdrmFormatModifierTilingFeatures
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkDrmFormatModifierPropertiesEXT
(MemorySegment segment, long elementCount) CreatesVkDrmFormatModifierPropertiesEXT
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc
(SegmentAllocator allocator) Allocates aVkDrmFormatModifierPropertiesEXT
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkDrmFormatModifierPropertiesEXT
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkDrmFormatModifierPropertiesEXT
.asSlice
(long index, long count) Creates a slice ofVkDrmFormatModifierPropertiesEXT
.at
(long index, Consumer<VkDrmFormatModifierPropertiesEXT> func) VisitsVkDrmFormatModifierPropertiesEXT
buffer at the given index.Copies from the given source.long
ReturnsdrmFormatModifier
.drmFormatModifier
(long value) SetsdrmFormatModifier
with the given value.static long
drmFormatModifier
(MemorySegment segment, long index) ReturnsdrmFormatModifier
at the given index.static void
drmFormatModifier
(MemorySegment segment, long index, long value) SetsdrmFormatModifier
with the given value at the given index.long
drmFormatModifierAt
(long index) ReturnsdrmFormatModifier
at the given index.drmFormatModifierAt
(long index, long value) SetsdrmFormatModifier
with the given value at the given index.int
ReturnsdrmFormatModifierPlaneCount
.drmFormatModifierPlaneCount
(int value) SetsdrmFormatModifierPlaneCount
with the given value.static int
drmFormatModifierPlaneCount
(MemorySegment segment, long index) ReturnsdrmFormatModifierPlaneCount
at the given index.static void
drmFormatModifierPlaneCount
(MemorySegment segment, long index, int value) SetsdrmFormatModifierPlaneCount
with the given value at the given index.int
drmFormatModifierPlaneCountAt
(long index) ReturnsdrmFormatModifierPlaneCount
at the given index.drmFormatModifierPlaneCountAt
(long index, int value) SetsdrmFormatModifierPlaneCount
with the given value at the given index.int
ReturnsdrmFormatModifierTilingFeatures
.drmFormatModifierTilingFeatures
(int value) SetsdrmFormatModifierTilingFeatures
with the given value.static int
drmFormatModifierTilingFeatures
(MemorySegment segment, long index) ReturnsdrmFormatModifierTilingFeatures
at the given index.static void
drmFormatModifierTilingFeatures
(MemorySegment segment, long index, int value) SetsdrmFormatModifierTilingFeatures
with the given value at the given index.int
drmFormatModifierTilingFeaturesAt
(long index) ReturnsdrmFormatModifierTilingFeatures
at the given index.drmFormatModifierTilingFeaturesAt
(long index, int value) SetsdrmFormatModifierTilingFeatures
with the given value at the given index.of
(MemorySegment segment) CreatesVkDrmFormatModifierPropertiesEXT
with the given segment.ofNative
(MemorySegment segment) CreatesVkDrmFormatModifierPropertiesEXT
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkDrmFormatModifierPropertiesEXT
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 ofVkDrmFormatModifierPropertiesEXT
. -
OFFSET_drmFormatModifier
public static final long OFFSET_drmFormatModifierThe byte offset ofdrmFormatModifier
. -
LAYOUT_drmFormatModifier
The memory layout ofdrmFormatModifier
. -
VH_drmFormatModifier
-
OFFSET_drmFormatModifierPlaneCount
public static final long OFFSET_drmFormatModifierPlaneCountThe byte offset ofdrmFormatModifierPlaneCount
. -
LAYOUT_drmFormatModifierPlaneCount
The memory layout ofdrmFormatModifierPlaneCount
. -
VH_drmFormatModifierPlaneCount
-
OFFSET_drmFormatModifierTilingFeatures
public static final long OFFSET_drmFormatModifierTilingFeaturesThe byte offset ofdrmFormatModifierTilingFeatures
. -
LAYOUT_drmFormatModifierTilingFeatures
The memory layout ofdrmFormatModifierTilingFeatures
. -
VH_drmFormatModifierTilingFeatures
-
-
Constructor Details
-
VkDrmFormatModifierPropertiesEXT
CreatesVkDrmFormatModifierPropertiesEXT
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkDrmFormatModifierPropertiesEXT
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkDrmFormatModifierPropertiesEXT
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
VkDrmFormatModifierPropertiesEXT
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 aVkDrmFormatModifierPropertiesEXT
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkDrmFormatModifierPropertiesEXT
-
alloc
Allocates aVkDrmFormatModifierPropertiesEXT
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkDrmFormatModifierPropertiesEXT
-
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
-
drmFormatModifier
ReturnsdrmFormatModifier
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
drmFormatModifier
at the given index
-
drmFormatModifier
public long drmFormatModifier()ReturnsdrmFormatModifier
.- Returns:
drmFormatModifier
-
drmFormatModifier
SetsdrmFormatModifier
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
drmFormatModifier
SetsdrmFormatModifier
with the given value.- Parameters:
value
- the value- Returns:
this
-
drmFormatModifierPlaneCount
ReturnsdrmFormatModifierPlaneCount
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
drmFormatModifierPlaneCount
at the given index
-
drmFormatModifierPlaneCount
public int drmFormatModifierPlaneCount()ReturnsdrmFormatModifierPlaneCount
.- Returns:
drmFormatModifierPlaneCount
-
drmFormatModifierPlaneCount
SetsdrmFormatModifierPlaneCount
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
drmFormatModifierPlaneCount
SetsdrmFormatModifierPlaneCount
with the given value.- Parameters:
value
- the value- Returns:
this
-
drmFormatModifierTilingFeatures
ReturnsdrmFormatModifierTilingFeatures
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
drmFormatModifierTilingFeatures
at the given index
-
drmFormatModifierTilingFeatures
public int drmFormatModifierTilingFeatures()ReturnsdrmFormatModifierTilingFeatures
.- Returns:
drmFormatModifierTilingFeatures
-
drmFormatModifierTilingFeatures
SetsdrmFormatModifierTilingFeatures
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
drmFormatModifierTilingFeatures
SetsdrmFormatModifierTilingFeatures
with the given value.- Parameters:
value
- the value- Returns:
this
-
asSlice
Creates a slice ofVkDrmFormatModifierPropertiesEXT
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkDrmFormatModifierPropertiesEXT
-
asSlice
Creates a slice ofVkDrmFormatModifierPropertiesEXT
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkDrmFormatModifierPropertiesEXT
-
at
public VkDrmFormatModifierPropertiesEXT at(long index, Consumer<VkDrmFormatModifierPropertiesEXT> func) VisitsVkDrmFormatModifierPropertiesEXT
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
drmFormatModifierAt
public long drmFormatModifierAt(long index) ReturnsdrmFormatModifier
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
drmFormatModifier
at the given index
-
drmFormatModifierAt
SetsdrmFormatModifier
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
drmFormatModifierPlaneCountAt
public int drmFormatModifierPlaneCountAt(long index) ReturnsdrmFormatModifierPlaneCount
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
drmFormatModifierPlaneCount
at the given index
-
drmFormatModifierPlaneCountAt
SetsdrmFormatModifierPlaneCount
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
drmFormatModifierTilingFeaturesAt
public int drmFormatModifierTilingFeaturesAt(long index) ReturnsdrmFormatModifierTilingFeatures
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
drmFormatModifierTilingFeatures
at the given index
-
drmFormatModifierTilingFeaturesAt
SetsdrmFormatModifierTilingFeatures
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-