Package org.lwjgl.vulkan
Class VkCudaLaunchInfoNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkCudaLaunchInfoNV {
VkStructureType sType;
void const * pNext;
VkCudaFunctionNV function;
uint32_t gridDimX;
uint32_t gridDimY;
uint32_t gridDimZ;
uint32_t blockDimX;
uint32_t blockDimY;
uint32_t blockDimZ;
uint32_t sharedMemBytes;
size_t paramCount;
void const * const * pParams;
size_t extraCount;
void const * const * pExtras;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 member offsets.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 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
ConstructorsConstructorDescriptionVkCudaLaunchInfoNV(ByteBuffer container) Creates aVkCudaLaunchInfoNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblockDimX(int value) Sets the specified value to theblockDimXfield.intblockDimY(int value) Sets the specified value to theblockDimYfield.intblockDimZ(int value) Sets the specified value to theblockDimZfield.static VkCudaLaunchInfoNVcalloc()Returns a newVkCudaLaunchInfoNVinstance allocated withmemCalloc.static VkCudaLaunchInfoNV.Buffercalloc(int capacity) Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated withmemCalloc.static VkCudaLaunchInfoNV.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCudaLaunchInfoNVcalloc(MemoryStack stack) Returns a newVkCudaLaunchInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCudaLaunchInfoNVcreate()Returns a newVkCudaLaunchInfoNVinstance allocated withBufferUtils.static VkCudaLaunchInfoNV.Buffercreate(int capacity) Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated withBufferUtils.static VkCudaLaunchInfoNVcreate(long address) Returns a newVkCudaLaunchInfoNVinstance for the specified memory address.static VkCudaLaunchInfoNV.Buffercreate(long address, int capacity) Create aVkCudaLaunchInfoNV.Bufferinstance at the specified memory.static @Nullable VkCudaLaunchInfoNVcreateSafe(long address) static @Nullable VkCudaLaunchInfoNV.BuffercreateSafe(long address, int capacity) longextraCount(long value) Sets the specified value to theextraCountfield.longfunction()function(long value) Sets the specified value to thefunctionfield.intgridDimX()gridDimX(int value) Sets the specified value to thegridDimXfield.intgridDimY()gridDimY(int value) Sets the specified value to thegridDimYfield.intgridDimZ()gridDimZ(int value) Sets the specified value to thegridDimZfield.static VkCudaLaunchInfoNVmalloc()Returns a newVkCudaLaunchInfoNVinstance allocated withmemAlloc.static VkCudaLaunchInfoNV.Buffermalloc(int capacity) Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated withmemAlloc.static VkCudaLaunchInfoNV.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkCudaLaunchInfoNVmalloc(MemoryStack stack) Returns a newVkCudaLaunchInfoNVinstance allocated on the specifiedMemoryStack.static intnblockDimX(long struct) Unsafe version ofblockDimX().static voidnblockDimX(long struct, int value) Unsafe version ofblockDimX.static intnblockDimY(long struct) Unsafe version ofblockDimY().static voidnblockDimY(long struct, int value) Unsafe version ofblockDimY.static intnblockDimZ(long struct) Unsafe version ofblockDimZ().static voidnblockDimZ(long struct, int value) Unsafe version ofblockDimZ.static longnextraCount(long struct) Unsafe version ofextraCount().static voidnextraCount(long struct, long value) Sets the specified value to theextraCountfield of the specifiedstruct.static longnfunction(long struct) Unsafe version offunction().static voidnfunction(long struct, long value) Unsafe version offunction.static intngridDimX(long struct) Unsafe version ofgridDimX().static voidngridDimX(long struct, int value) Unsafe version ofgridDimX.static intngridDimY(long struct) Unsafe version ofgridDimY().static voidngridDimY(long struct, int value) Unsafe version ofgridDimY.static intngridDimZ(long struct) Unsafe version ofgridDimZ().static voidngridDimZ(long struct, int value) Unsafe version ofgridDimZ.static longnparamCount(long struct) Unsafe version ofparamCount().static voidnparamCount(long struct, long value) Sets the specified value to theparamCountfield of the specifiedstruct.static @Nullable PointerBuffernpExtras(long struct) Unsafe version ofpExtras.static voidnpExtras(long struct, @Nullable PointerBuffer value) Unsafe version ofpExtras.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable PointerBuffernpParams(long struct) Unsafe version ofpParams.static voidnpParams(long struct, @Nullable PointerBuffer value) Unsafe version ofpParams.static intnsharedMemBytes(long struct) Unsafe version ofsharedMemBytes().static voidnsharedMemBytes(long struct, int value) Unsafe version ofsharedMemBytes.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longparamCount(long value) Sets the specified value to theparamCountfield.@Nullable PointerBufferpExtras()pExtras(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thepExtrasfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.@Nullable PointerBufferpParams()pParams(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thepParamsfield.set(int sType, long pNext, long function, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, long paramCount, @Nullable PointerBuffer pParams, long extraCount, @Nullable PointerBuffer pExtras) Initializes this struct with the specified values.set(VkCudaLaunchInfoNV src) Copies the specified struct data to this struct.intsharedMemBytes(int value) Sets the specified value to thesharedMemBytesfield.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_CUDA_LAUNCH_INFO_NVvalue to thesTypefield.Methods 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. -
FUNCTION
public static final int FUNCTIONThe struct member offsets. -
GRIDDIMX
public static final int GRIDDIMXThe struct member offsets. -
GRIDDIMY
public static final int GRIDDIMYThe struct member offsets. -
GRIDDIMZ
public static final int GRIDDIMZThe struct member offsets. -
BLOCKDIMX
public static final int BLOCKDIMXThe struct member offsets. -
BLOCKDIMY
public static final int BLOCKDIMYThe struct member offsets. -
BLOCKDIMZ
public static final int BLOCKDIMZThe struct member offsets. -
SHAREDMEMBYTES
public static final int SHAREDMEMBYTESThe struct member offsets. -
PARAMCOUNT
public static final int PARAMCOUNTThe struct member offsets. -
PPARAMS
public static final int PPARAMSThe struct member offsets. -
EXTRACOUNT
public static final int EXTRACOUNTThe struct member offsets. -
PEXTRAS
public static final int PEXTRASThe struct member offsets.
-
-
Constructor Details
-
VkCudaLaunchInfoNV
Creates aVkCudaLaunchInfoNVinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkCudaLaunchInfoNV>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
function
public long function()- Returns:
- the value of the
functionfield.
-
gridDimX
public int gridDimX()- Returns:
- the value of the
gridDimXfield.
-
gridDimY
public int gridDimY()- Returns:
- the value of the
gridDimYfield.
-
gridDimZ
public int gridDimZ()- Returns:
- the value of the
gridDimZfield.
-
blockDimX
public int blockDimX()- Returns:
- the value of the
blockDimXfield.
-
blockDimY
public int blockDimY()- Returns:
- the value of the
blockDimYfield.
-
blockDimZ
public int blockDimZ()- Returns:
- the value of the
blockDimZfield.
-
paramCount
public long paramCount()- Returns:
- the value of the
paramCountfield.
-
pParams
- Returns:
- a
PointerBufferview of the data pointed to by thepParamsfield.
-
extraCount
public long extraCount()- Returns:
- the value of the
extraCountfield.
-
pExtras
- Returns:
- a
PointerBufferview of the data pointed to by thepExtrasfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_CUDA_LAUNCH_INFO_NVvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
function
Sets the specified value to thefunctionfield. -
gridDimX
Sets the specified value to thegridDimXfield. -
gridDimY
Sets the specified value to thegridDimYfield. -
gridDimZ
Sets the specified value to thegridDimZfield. -
blockDimX
Sets the specified value to theblockDimXfield. -
blockDimY
Sets the specified value to theblockDimYfield. -
blockDimZ
Sets the specified value to theblockDimZfield. -
paramCount
Sets the specified value to theparamCountfield. -
pParams
Sets the address of the specifiedPointerBufferto thepParamsfield. -
extraCount
Sets the specified value to theextraCountfield. -
pExtras
Sets the address of the specifiedPointerBufferto thepExtrasfield. -
set
public VkCudaLaunchInfoNV set(int sType, long pNext, long function, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, long paramCount, @Nullable PointerBuffer pParams, long extraCount, @Nullable PointerBuffer pExtras) 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 newVkCudaLaunchInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkCudaLaunchInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkCudaLaunchInfoNVinstance allocated withBufferUtils. -
create
Returns a newVkCudaLaunchInfoNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkCudaLaunchInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkCudaLaunchInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkCudaLaunchInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkCudaLaunchInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkCudaLaunchInfoNV.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(). -
nfunction
public static long nfunction(long struct) Unsafe version offunction(). -
ngridDimX
public static int ngridDimX(long struct) Unsafe version ofgridDimX(). -
ngridDimY
public static int ngridDimY(long struct) Unsafe version ofgridDimY(). -
ngridDimZ
public static int ngridDimZ(long struct) Unsafe version ofgridDimZ(). -
nblockDimX
public static int nblockDimX(long struct) Unsafe version ofblockDimX(). -
nblockDimY
public static int nblockDimY(long struct) Unsafe version ofblockDimY(). -
nblockDimZ
public static int nblockDimZ(long struct) Unsafe version ofblockDimZ(). -
nparamCount
public static long nparamCount(long struct) Unsafe version ofparamCount(). -
npParams
Unsafe version ofpParams. -
nextraCount
public static long nextraCount(long struct) Unsafe version ofextraCount(). -
npExtras
Unsafe version ofpExtras. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nfunction
public static void nfunction(long struct, long value) Unsafe version offunction. -
ngridDimX
public static void ngridDimX(long struct, int value) Unsafe version ofgridDimX. -
ngridDimY
public static void ngridDimY(long struct, int value) Unsafe version ofgridDimY. -
ngridDimZ
public static void ngridDimZ(long struct, int value) Unsafe version ofgridDimZ. -
nblockDimX
public static void nblockDimX(long struct, int value) Unsafe version ofblockDimX. -
nblockDimY
public static void nblockDimY(long struct, int value) Unsafe version ofblockDimY. -
nblockDimZ
public static void nblockDimZ(long struct, int value) Unsafe version ofblockDimZ. -
nparamCount
public static void nparamCount(long struct, long value) Sets the specified value to theparamCountfield of the specifiedstruct. -
npParams
Unsafe version ofpParams. -
nextraCount
public static void nextraCount(long struct, long value) Sets the specified value to theextraCountfield of the specifiedstruct. -
npExtras
Unsafe version ofpExtras.
-