Class VkPipelineFragmentShadingRateStateCreateInfoKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkPipelineFragmentShadingRateStateCreateInfoKHR
- All Implemented Interfaces:
Addressable
Represents VkPipelineFragmentShadingRateStateCreateInfoKHR.
Layout
struct VkPipelineFragmentShadingRateStateCreateInfoKHR {
(int) VkStructureType sType;
const void* pNext;
(struct VkExtent2D) VkExtent2D fragmentSize;
(int) VkFragmentShadingRateCombinerOpKHR combinerOps[2];
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkPipelineFragmentShadingRateStateCreateInfoKHR.static final MemoryLayoutThe memory layout ofcombinerOps.static final MemoryLayoutThe memory layout offragmentSize.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofcombinerOps.static final longThe byte offset offragmentSize.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofcombinerOpsof type(MemorySegment base, long baseOffset, long index, long index0)MemorySegment.static final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineFragmentShadingRateStateCreateInfoKHR(MemorySegment segment, long elementCount) CreatesVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkPipelineFragmentShadingRateStateCreateInfoKHR.asSlice(long index, long count) Creates a slice ofVkPipelineFragmentShadingRateStateCreateInfoKHR.at(long index, Consumer<VkPipelineFragmentShadingRateStateCreateInfoKHR> func) VisitsVkPipelineFragmentShadingRateStateCreateInfoKHRbuffer at the given index.ReturnscombinerOps.intcombinerOps(long index0) ReturnscombinerOps.combinerOps(long index0, int value) SetscombinerOpswith the given value.combinerOps(MemorySegment value) SetscombinerOpswith the given value.static MemorySegmentcombinerOps(MemorySegment segment, long index) ReturnscombinerOpsat the given index.static intcombinerOps(MemorySegment segment, long index, long index0) ReturnscombinerOpsat the given index.static voidcombinerOps(MemorySegment segment, long index, long index0, int value) SetscombinerOpswith the given value at the given index.static voidcombinerOps(MemorySegment segment, long index, MemorySegment value) SetscombinerOpswith the given value at the given index.combinerOpsAt(long index) ReturnscombinerOpsat the given index.intcombinerOpsAt(long index, long index0) ReturnscombinerOpsat the given index.combinerOpsAt(long index, long index0, int value) SetscombinerOpswith the given value at the given index.combinerOpsAt(long index, MemorySegment value) SetscombinerOpswith the given value at the given index.Copies from the given source.ReturnsfragmentSize.fragmentSize(MemorySegment value) SetsfragmentSizewith the given value.static MemorySegmentfragmentSize(MemorySegment segment, long index) ReturnsfragmentSizeat the given index.static voidfragmentSize(MemorySegment segment, long index, MemorySegment value) SetsfragmentSizewith the given value at the given index.fragmentSize(Consumer<VkExtent2D> func) AcceptsfragmentSizewith the given function.fragmentSizeAt(long index) ReturnsfragmentSizeat the given index.fragmentSizeAt(long index, MemorySegment value) SetsfragmentSizewith the given value at the given index.fragmentSizeAt(long index, Consumer<VkExtent2D> func) AcceptsfragmentSizewith the given function.of(MemorySegment segment) CreatesVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment.pNext()ReturnspNext.pNext(MemorySegment value) SetspNextwith the given value.static MemorySegmentpNext(MemorySegment segment, long index) ReturnspNextat the given index.static voidpNext(MemorySegment segment, long index, MemorySegment value) SetspNextwith the given value at the given index.pNextAt(long index) ReturnspNextat the given index.pNextAt(long index, MemorySegment value) SetspNextwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.intsType()ReturnssType.sType(int value) SetssTypewith the given value.static intsType(MemorySegment segment, long index) ReturnssTypeat the given index.static voidsType(MemorySegment segment, long index, int value) SetssTypewith the given value at the given index.intsTypeAt(long index) ReturnssTypeat the given index.sTypeAt(long index, int value) SetssTypewith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkPipelineFragmentShadingRateStateCreateInfoKHR. -
OFFSET_sType
public static final long OFFSET_sTypeThe byte offset ofsType. -
LAYOUT_sType
The memory layout ofsType. -
VH_sType
-
OFFSET_pNext
public static final long OFFSET_pNextThe byte offset ofpNext. -
LAYOUT_pNext
The memory layout ofpNext. -
VH_pNext
-
OFFSET_fragmentSize
public static final long OFFSET_fragmentSizeThe byte offset offragmentSize. -
LAYOUT_fragmentSize
The memory layout offragmentSize. -
OFFSET_combinerOps
public static final long OFFSET_combinerOpsThe byte offset ofcombinerOps. -
LAYOUT_combinerOps
The memory layout ofcombinerOps. -
VH_combinerOps
-
-
Constructor Details
-
VkPipelineFragmentShadingRateStateCreateInfoKHR
CreatesVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
public static VkPipelineFragmentShadingRateStateCreateInfoKHR ofNative(MemorySegment segment, long count) Creates
VkPipelineFragmentShadingRateStateCreateInfoKHRwith 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 aVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkPipelineFragmentShadingRateStateCreateInfoKHR
-
alloc
public static VkPipelineFragmentShadingRateStateCreateInfoKHR alloc(SegmentAllocator allocator, long count) Allocates aVkPipelineFragmentShadingRateStateCreateInfoKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkPipelineFragmentShadingRateStateCreateInfoKHR
-
copyFrom
public VkPipelineFragmentShadingRateStateCreateInfoKHR copyFrom(VkPipelineFragmentShadingRateStateCreateInfoKHR src) 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
-
sType
ReturnssTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sTypeat the given index
-
sType
public int sType()ReturnssType.- Returns:
sType
-
sType
SetssTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sType
SetssTypewith the given value.- Parameters:
value- the value- Returns:
this
-
pNext
ReturnspNextat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pNextat the given index
-
pNext
-
pNext
SetspNextwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pNext
SetspNextwith the given value.- Parameters:
value- the value- Returns:
this
-
fragmentSize
ReturnsfragmentSizeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
fragmentSizeat the given index
-
fragmentSize
-
fragmentSize
SetsfragmentSizewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
fragmentSize
SetsfragmentSizewith the given value.- Parameters:
value- the value- Returns:
this
-
fragmentSize
AcceptsfragmentSizewith the given function.- Parameters:
func- the function- Returns:
this
-
combinerOps
ReturnscombinerOpsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
combinerOpsat the given index
-
combinerOps
ReturnscombinerOpsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct bufferindex0- the Index 0 of the array- Returns:
combinerOpsat the given index
-
combinerOps
-
combinerOps
public int combinerOps(long index0) ReturnscombinerOps.- Parameters:
index0- the Index 0 of the array- Returns:
combinerOps
-
combinerOps
SetscombinerOpswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
combinerOps
SetscombinerOpswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct bufferindex0- the Index 0 of the arrayvalue- the value
-
combinerOps
SetscombinerOpswith the given value.- Parameters:
value- the value- Returns:
this
-
combinerOps
SetscombinerOpswith the given value.- Parameters:
index0- the Index 0 of the arrayvalue- the value- Returns:
this
-
asSlice
Creates a slice ofVkPipelineFragmentShadingRateStateCreateInfoKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkPipelineFragmentShadingRateStateCreateInfoKHR
-
asSlice
Creates a slice ofVkPipelineFragmentShadingRateStateCreateInfoKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkPipelineFragmentShadingRateStateCreateInfoKHR
-
at
public VkPipelineFragmentShadingRateStateCreateInfoKHR at(long index, Consumer<VkPipelineFragmentShadingRateStateCreateInfoKHR> func) VisitsVkPipelineFragmentShadingRateStateCreateInfoKHRbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
sTypeAt
public int sTypeAt(long index) ReturnssTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sTypeat the given index
-
sTypeAt
SetssTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pNextAt
ReturnspNextat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pNextat the given index
-
pNextAt
SetspNextwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
fragmentSizeAt
ReturnsfragmentSizeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
fragmentSizeat the given index
-
fragmentSizeAt
public VkPipelineFragmentShadingRateStateCreateInfoKHR fragmentSizeAt(long index, MemorySegment value) SetsfragmentSizewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
fragmentSizeAt
public VkPipelineFragmentShadingRateStateCreateInfoKHR fragmentSizeAt(long index, Consumer<VkExtent2D> func) AcceptsfragmentSizewith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
combinerOpsAt
ReturnscombinerOpsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
combinerOpsat the given index
-
combinerOpsAt
public int combinerOpsAt(long index, long index0) ReturnscombinerOpsat the given index.- Parameters:
index- the index of the struct bufferindex0- the Index 0 of the array- Returns:
combinerOpsat the given index
-
combinerOpsAt
public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOpsAt(long index, MemorySegment value) SetscombinerOpswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
combinerOpsAt
public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOpsAt(long index, long index0, int value) SetscombinerOpswith the given value at the given index.- Parameters:
index- the index of the struct bufferindex0- the Index 0 of the arrayvalue- the value- Returns:
this
-