Package org.lwjgl.vulkan
Class VkComputePipelineIndirectBufferInfoNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkComputePipelineIndirectBufferInfoNV>
org.lwjgl.vulkan.VkComputePipelineIndirectBufferInfoNV
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkComputePipelineIndirectBufferInfoNV
extends org.lwjgl.system.Struct<VkComputePipelineIndirectBufferInfoNV>
implements org.lwjgl.system.NativeResource
Structure describing the device address where pipeline’s metadata will be saved.
Description
If pipelineDeviceAddressCaptureReplay is zero, no specific address is requested. If pipelineDeviceAddressCaptureReplay is not zero, then it must be an address retrieved from an identically created pipeline on the same implementation. The pipeline metadata must also be placed on an identically created buffer and at the same offset using the CmdUpdatePipelineIndirectBufferNV command.
Valid Usage
- The
VkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV::deviceGeneratedComputePipelinesfeature must be enabled - The pipeline creation flags in
VkComputePipelineCreateInfo::flagsmust includePIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV deviceAddressmust be aligned to theVkMemoryRequirements2::alignment, as returned byGetPipelineIndirectMemoryRequirementsNVdeviceAddressmust have been allocated from a buffer that was created with usageBUFFER_USAGE_TRANSFER_DST_BITandBUFFER_USAGE_INDIRECT_BUFFER_BITsizemust be greater than or equal to theVkMemoryRequirements2::size, as returned byGetPipelineIndirectMemoryRequirementsNV- If
pipelineDeviceAddressCaptureReplayis non-zero then theVkPhysicalDeviceDeviceGeneratedCommandsComputeFeaturesNV::deviceGeneratedComputeCaptureReplayfeature must be enabled - If
pipelineDeviceAddressCaptureReplayis non-zero then that address must have been allocated with flagMEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BITset - If
pipelineDeviceAddressCaptureReplayis non-zero, thepipelinemust have been recreated for replay pipelineDeviceAddressCaptureReplaymust satisfy thealignmentandsizerequirements similar todeviceAddress
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_COMPUTE_PIPELINE_INDIRECT_BUFFER_INFO_NV
Layout
struct VkComputePipelineIndirectBufferInfoNV {
VkStructureType sType();
void const * pNext();
VkDeviceAddress deviceAddress();
VkDeviceSize size();
VkDeviceAddress pipelineDeviceAddressCaptureReplay();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkComputePipelineIndirectBufferInfoNVstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkComputePipelineIndirectBufferInfoNV(ByteBuffer container) Creates aVkComputePipelineIndirectBufferInfoNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkComputePipelineIndirectBufferInfoNVinstance for the specified memory address.create(long address, int capacity) Create aVkComputePipelineIndirectBufferInfoNV.Bufferinstance at the specified memory.static @Nullable VkComputePipelineIndirectBufferInfoNVcreateSafe(long address) static @Nullable VkComputePipelineIndirectBufferInfoNV.BuffercreateSafe(long address, int capacity) longthe address where the pipeline’s metadata will be stored.deviceAddress(long value) Sets the specified value to thedeviceAddress()field.malloc()Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated on the specifiedMemoryStack.static longndeviceAddress(long struct) Unsafe version ofdeviceAddress().static voidndeviceAddress(long struct, long value) Unsafe version ofdeviceAddress.static longnpipelineDeviceAddressCaptureReplay(long struct) Unsafe version ofpipelineDeviceAddressCaptureReplay().static voidnpipelineDeviceAddressCaptureReplay(long struct, long value) Unsafe version ofpipelineDeviceAddressCaptureReplay.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longthe device address where pipeline’s metadata was originally saved and can now be used to re-populatedeviceAddressfor replay.pipelineDeviceAddressCaptureReplay(long value) Sets the specified value to thepipelineDeviceAddressCaptureReplay()field.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.set(int sType, long pNext, long deviceAddress, long size, long pipelineDeviceAddressCaptureReplay) Initializes this struct with the specified values.Copies the specified struct data to this struct.longsize()the size of pipeline’s metadata that was queried usingGetPipelineIndirectMemoryRequirementsNV.size(long value) Sets the specified value to thesize()field.intsizeof()intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_COMPUTE_PIPELINE_INDIRECT_BUFFER_INFO_NVvalue to thesType()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
DEVICEADDRESS
public static final int DEVICEADDRESSThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
PIPELINEDEVICEADDRESSCAPTUREREPLAY
public static final int PIPELINEDEVICEADDRESSCAPTUREREPLAYThe struct member offsets.
-
-
Constructor Details
-
VkComputePipelineIndirectBufferInfoNV
Creates aVkComputePipelineIndirectBufferInfoNVinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkComputePipelineIndirectBufferInfoNV>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
deviceAddress
public long deviceAddress()the address where the pipeline’s metadata will be stored. -
size
public long size()the size of pipeline’s metadata that was queried usingGetPipelineIndirectMemoryRequirementsNV. -
pipelineDeviceAddressCaptureReplay
public long pipelineDeviceAddressCaptureReplay()the device address where pipeline’s metadata was originally saved and can now be used to re-populatedeviceAddressfor replay. -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_COMPUTE_PIPELINE_INDIRECT_BUFFER_INFO_NVvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
deviceAddress
Sets the specified value to thedeviceAddress()field. -
size
Sets the specified value to thesize()field. -
pipelineDeviceAddressCaptureReplay
Sets the specified value to thepipelineDeviceAddressCaptureReplay()field. -
set
public VkComputePipelineIndirectBufferInfoNV set(int sType, long pNext, long deviceAddress, long size, long pipelineDeviceAddressCaptureReplay) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated withBufferUtils. -
create
Returns a newVkComputePipelineIndirectBufferInfoNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkComputePipelineIndirectBufferInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkComputePipelineIndirectBufferInfoNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkComputePipelineIndirectBufferInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkComputePipelineIndirectBufferInfoNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkComputePipelineIndirectBufferInfoNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkComputePipelineIndirectBufferInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
ndeviceAddress
public static long ndeviceAddress(long struct) Unsafe version ofdeviceAddress(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
npipelineDeviceAddressCaptureReplay
public static long npipelineDeviceAddressCaptureReplay(long struct) Unsafe version ofpipelineDeviceAddressCaptureReplay(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ndeviceAddress
public static void ndeviceAddress(long struct, long value) Unsafe version ofdeviceAddress. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize. -
npipelineDeviceAddressCaptureReplay
public static void npipelineDeviceAddressCaptureReplay(long struct, long value) Unsafe version ofpipelineDeviceAddressCaptureReplay.
-