Class VkPhysicalDeviceCooperativeVectorPropertiesNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkPhysicalDeviceCooperativeVectorPropertiesNV
- All Implemented Interfaces:
Addressable
Represents VkPhysicalDeviceCooperativeVectorPropertiesNV.
Layout
struct VkPhysicalDeviceCooperativeVectorPropertiesNV {
(int) VkStructureType sType;
void* pNext;
((uint32_t) VkFlags) VkShaderStageFlags cooperativeVectorSupportedStages;
(uint32_t) VkBool32 cooperativeVectorTrainingFloat16Accumulation;
(uint32_t) VkBool32 cooperativeVectorTrainingFloat32Accumulation;
uint32_t maxCooperativeVectorComponents;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkPhysicalDeviceCooperativeVectorPropertiesNV.static final MemoryLayoutThe memory layout ofcooperativeVectorSupportedStages.static final MemoryLayoutThe memory layout ofcooperativeVectorTrainingFloat16Accumulation.static final MemoryLayoutThe memory layout ofcooperativeVectorTrainingFloat32Accumulation.static final MemoryLayoutThe memory layout ofmaxCooperativeVectorComponents.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofcooperativeVectorSupportedStages.static final longThe byte offset ofcooperativeVectorTrainingFloat16Accumulation.static final longThe byte offset ofcooperativeVectorTrainingFloat32Accumulation.static final longThe byte offset ofmaxCooperativeVectorComponents.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofcooperativeVectorSupportedStagesof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofcooperativeVectorTrainingFloat16Accumulationof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofcooperativeVectorTrainingFloat32Accumulationof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofmaxCooperativeVectorComponentsof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceCooperativeVectorPropertiesNV(MemorySegment segment, long elementCount) CreatesVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkPhysicalDeviceCooperativeVectorPropertiesNV.asSlice(long index, long count) Creates a slice ofVkPhysicalDeviceCooperativeVectorPropertiesNV.at(long index, Consumer<VkPhysicalDeviceCooperativeVectorPropertiesNV> func) VisitsVkPhysicalDeviceCooperativeVectorPropertiesNVbuffer at the given index.intReturnscooperativeVectorSupportedStages.cooperativeVectorSupportedStages(int value) SetscooperativeVectorSupportedStageswith the given value.static intcooperativeVectorSupportedStages(MemorySegment segment, long index) ReturnscooperativeVectorSupportedStagesat the given index.static voidcooperativeVectorSupportedStages(MemorySegment segment, long index, int value) SetscooperativeVectorSupportedStageswith the given value at the given index.intcooperativeVectorSupportedStagesAt(long index) ReturnscooperativeVectorSupportedStagesat the given index.cooperativeVectorSupportedStagesAt(long index, int value) SetscooperativeVectorSupportedStageswith the given value at the given index.intReturnscooperativeVectorTrainingFloat16Accumulation.cooperativeVectorTrainingFloat16Accumulation(int value) SetscooperativeVectorTrainingFloat16Accumulationwith the given value.static intcooperativeVectorTrainingFloat16Accumulation(MemorySegment segment, long index) ReturnscooperativeVectorTrainingFloat16Accumulationat the given index.static voidcooperativeVectorTrainingFloat16Accumulation(MemorySegment segment, long index, int value) SetscooperativeVectorTrainingFloat16Accumulationwith the given value at the given index.intcooperativeVectorTrainingFloat16AccumulationAt(long index) ReturnscooperativeVectorTrainingFloat16Accumulationat the given index.cooperativeVectorTrainingFloat16AccumulationAt(long index, int value) SetscooperativeVectorTrainingFloat16Accumulationwith the given value at the given index.intReturnscooperativeVectorTrainingFloat32Accumulation.cooperativeVectorTrainingFloat32Accumulation(int value) SetscooperativeVectorTrainingFloat32Accumulationwith the given value.static intcooperativeVectorTrainingFloat32Accumulation(MemorySegment segment, long index) ReturnscooperativeVectorTrainingFloat32Accumulationat the given index.static voidcooperativeVectorTrainingFloat32Accumulation(MemorySegment segment, long index, int value) SetscooperativeVectorTrainingFloat32Accumulationwith the given value at the given index.intcooperativeVectorTrainingFloat32AccumulationAt(long index) ReturnscooperativeVectorTrainingFloat32Accumulationat the given index.cooperativeVectorTrainingFloat32AccumulationAt(long index, int value) SetscooperativeVectorTrainingFloat32Accumulationwith the given value at the given index.Copies from the given source.intReturnsmaxCooperativeVectorComponents.maxCooperativeVectorComponents(int value) SetsmaxCooperativeVectorComponentswith the given value.static intmaxCooperativeVectorComponents(MemorySegment segment, long index) ReturnsmaxCooperativeVectorComponentsat the given index.static voidmaxCooperativeVectorComponents(MemorySegment segment, long index, int value) SetsmaxCooperativeVectorComponentswith the given value at the given index.intmaxCooperativeVectorComponentsAt(long index) ReturnsmaxCooperativeVectorComponentsat the given index.maxCooperativeVectorComponentsAt(long index, int value) SetsmaxCooperativeVectorComponentswith the given value at the given index.of(MemorySegment segment) CreatesVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment.ofNative(MemorySegment segment) CreatesVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkPhysicalDeviceCooperativeVectorPropertiesNVwith 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 ofVkPhysicalDeviceCooperativeVectorPropertiesNV. -
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_cooperativeVectorSupportedStages
public static final long OFFSET_cooperativeVectorSupportedStagesThe byte offset ofcooperativeVectorSupportedStages. -
LAYOUT_cooperativeVectorSupportedStages
The memory layout ofcooperativeVectorSupportedStages. -
VH_cooperativeVectorSupportedStages
-
OFFSET_cooperativeVectorTrainingFloat16Accumulation
public static final long OFFSET_cooperativeVectorTrainingFloat16AccumulationThe byte offset ofcooperativeVectorTrainingFloat16Accumulation. -
LAYOUT_cooperativeVectorTrainingFloat16Accumulation
The memory layout ofcooperativeVectorTrainingFloat16Accumulation. -
VH_cooperativeVectorTrainingFloat16Accumulation
-
OFFSET_cooperativeVectorTrainingFloat32Accumulation
public static final long OFFSET_cooperativeVectorTrainingFloat32AccumulationThe byte offset ofcooperativeVectorTrainingFloat32Accumulation. -
LAYOUT_cooperativeVectorTrainingFloat32Accumulation
The memory layout ofcooperativeVectorTrainingFloat32Accumulation. -
VH_cooperativeVectorTrainingFloat32Accumulation
-
OFFSET_maxCooperativeVectorComponents
public static final long OFFSET_maxCooperativeVectorComponentsThe byte offset ofmaxCooperativeVectorComponents. -
LAYOUT_maxCooperativeVectorComponents
The memory layout ofmaxCooperativeVectorComponents. -
VH_maxCooperativeVectorComponents
-
-
Constructor Details
-
VkPhysicalDeviceCooperativeVectorPropertiesNV
CreatesVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPhysicalDeviceCooperativeVectorPropertiesNVwith 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 VkPhysicalDeviceCooperativeVectorPropertiesNV ofNative(MemorySegment segment, long count) Creates
VkPhysicalDeviceCooperativeVectorPropertiesNVwith 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 aVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkPhysicalDeviceCooperativeVectorPropertiesNV
-
alloc
public static VkPhysicalDeviceCooperativeVectorPropertiesNV alloc(SegmentAllocator allocator, long count) Allocates aVkPhysicalDeviceCooperativeVectorPropertiesNVwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkPhysicalDeviceCooperativeVectorPropertiesNV
-
copyFrom
public VkPhysicalDeviceCooperativeVectorPropertiesNV copyFrom(VkPhysicalDeviceCooperativeVectorPropertiesNV 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
-
cooperativeVectorSupportedStages
ReturnscooperativeVectorSupportedStagesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
cooperativeVectorSupportedStagesat the given index
-
cooperativeVectorSupportedStages
public int cooperativeVectorSupportedStages()ReturnscooperativeVectorSupportedStages.- Returns:
cooperativeVectorSupportedStages
-
cooperativeVectorSupportedStages
SetscooperativeVectorSupportedStageswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
cooperativeVectorSupportedStages
SetscooperativeVectorSupportedStageswith the given value.- Parameters:
value- the value- Returns:
this
-
cooperativeVectorTrainingFloat16Accumulation
ReturnscooperativeVectorTrainingFloat16Accumulationat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
cooperativeVectorTrainingFloat16Accumulationat the given index
-
cooperativeVectorTrainingFloat16Accumulation
public int cooperativeVectorTrainingFloat16Accumulation()ReturnscooperativeVectorTrainingFloat16Accumulation.- Returns:
cooperativeVectorTrainingFloat16Accumulation
-
cooperativeVectorTrainingFloat16Accumulation
public static void cooperativeVectorTrainingFloat16Accumulation(MemorySegment segment, long index, int value) SetscooperativeVectorTrainingFloat16Accumulationwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
cooperativeVectorTrainingFloat16Accumulation
public VkPhysicalDeviceCooperativeVectorPropertiesNV cooperativeVectorTrainingFloat16Accumulation(int value) SetscooperativeVectorTrainingFloat16Accumulationwith the given value.- Parameters:
value- the value- Returns:
this
-
cooperativeVectorTrainingFloat32Accumulation
ReturnscooperativeVectorTrainingFloat32Accumulationat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
cooperativeVectorTrainingFloat32Accumulationat the given index
-
cooperativeVectorTrainingFloat32Accumulation
public int cooperativeVectorTrainingFloat32Accumulation()ReturnscooperativeVectorTrainingFloat32Accumulation.- Returns:
cooperativeVectorTrainingFloat32Accumulation
-
cooperativeVectorTrainingFloat32Accumulation
public static void cooperativeVectorTrainingFloat32Accumulation(MemorySegment segment, long index, int value) SetscooperativeVectorTrainingFloat32Accumulationwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
cooperativeVectorTrainingFloat32Accumulation
public VkPhysicalDeviceCooperativeVectorPropertiesNV cooperativeVectorTrainingFloat32Accumulation(int value) SetscooperativeVectorTrainingFloat32Accumulationwith the given value.- Parameters:
value- the value- Returns:
this
-
maxCooperativeVectorComponents
ReturnsmaxCooperativeVectorComponentsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
maxCooperativeVectorComponentsat the given index
-
maxCooperativeVectorComponents
public int maxCooperativeVectorComponents()ReturnsmaxCooperativeVectorComponents.- Returns:
maxCooperativeVectorComponents
-
maxCooperativeVectorComponents
SetsmaxCooperativeVectorComponentswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
maxCooperativeVectorComponents
SetsmaxCooperativeVectorComponentswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkPhysicalDeviceCooperativeVectorPropertiesNV.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkPhysicalDeviceCooperativeVectorPropertiesNV
-
asSlice
Creates a slice ofVkPhysicalDeviceCooperativeVectorPropertiesNV.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkPhysicalDeviceCooperativeVectorPropertiesNV
-
at
public VkPhysicalDeviceCooperativeVectorPropertiesNV at(long index, Consumer<VkPhysicalDeviceCooperativeVectorPropertiesNV> func) VisitsVkPhysicalDeviceCooperativeVectorPropertiesNVbuffer 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
-
cooperativeVectorSupportedStagesAt
public int cooperativeVectorSupportedStagesAt(long index) ReturnscooperativeVectorSupportedStagesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
cooperativeVectorSupportedStagesat the given index
-
cooperativeVectorSupportedStagesAt
public VkPhysicalDeviceCooperativeVectorPropertiesNV cooperativeVectorSupportedStagesAt(long index, int value) SetscooperativeVectorSupportedStageswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
cooperativeVectorTrainingFloat16AccumulationAt
public int cooperativeVectorTrainingFloat16AccumulationAt(long index) ReturnscooperativeVectorTrainingFloat16Accumulationat the given index.- Parameters:
index- the index of the struct buffer- Returns:
cooperativeVectorTrainingFloat16Accumulationat the given index
-
cooperativeVectorTrainingFloat16AccumulationAt
public VkPhysicalDeviceCooperativeVectorPropertiesNV cooperativeVectorTrainingFloat16AccumulationAt(long index, int value) SetscooperativeVectorTrainingFloat16Accumulationwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
cooperativeVectorTrainingFloat32AccumulationAt
public int cooperativeVectorTrainingFloat32AccumulationAt(long index) ReturnscooperativeVectorTrainingFloat32Accumulationat the given index.- Parameters:
index- the index of the struct buffer- Returns:
cooperativeVectorTrainingFloat32Accumulationat the given index
-
cooperativeVectorTrainingFloat32AccumulationAt
public VkPhysicalDeviceCooperativeVectorPropertiesNV cooperativeVectorTrainingFloat32AccumulationAt(long index, int value) SetscooperativeVectorTrainingFloat32Accumulationwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
maxCooperativeVectorComponentsAt
public int maxCooperativeVectorComponentsAt(long index) ReturnsmaxCooperativeVectorComponentsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
maxCooperativeVectorComponentsat the given index
-
maxCooperativeVectorComponentsAt
public VkPhysicalDeviceCooperativeVectorPropertiesNV maxCooperativeVectorComponentsAt(long index, int value) SetsmaxCooperativeVectorComponentswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-