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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aVkCudaLaunchInfoNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
blockDimX
(int value) Sets the specified value to theblockDimX
field.int
blockDimY
(int value) Sets the specified value to theblockDimY
field.int
blockDimZ
(int value) Sets the specified value to theblockDimZ
field.static VkCudaLaunchInfoNV
calloc()
Returns a newVkCudaLaunchInfoNV
instance allocated withmemCalloc
.static VkCudaLaunchInfoNV.Buffer
calloc
(int capacity) Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated withmemCalloc
.static VkCudaLaunchInfoNV.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCudaLaunchInfoNV
calloc
(MemoryStack stack) Returns a newVkCudaLaunchInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCudaLaunchInfoNV
create()
Returns a newVkCudaLaunchInfoNV
instance allocated withBufferUtils
.static VkCudaLaunchInfoNV.Buffer
create
(int capacity) Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated withBufferUtils
.static VkCudaLaunchInfoNV
create
(long address) Returns a newVkCudaLaunchInfoNV
instance for the specified memory address.static VkCudaLaunchInfoNV.Buffer
create
(long address, int capacity) Create aVkCudaLaunchInfoNV.Buffer
instance at the specified memory.static @Nullable VkCudaLaunchInfoNV
createSafe
(long address) static @Nullable VkCudaLaunchInfoNV.Buffer
createSafe
(long address, int capacity) long
extraCount
(long value) Sets the specified value to theextraCount
field.long
function()
function
(long value) Sets the specified value to thefunction
field.int
gridDimX()
gridDimX
(int value) Sets the specified value to thegridDimX
field.int
gridDimY()
gridDimY
(int value) Sets the specified value to thegridDimY
field.int
gridDimZ()
gridDimZ
(int value) Sets the specified value to thegridDimZ
field.static VkCudaLaunchInfoNV
malloc()
Returns a newVkCudaLaunchInfoNV
instance allocated withmemAlloc
.static VkCudaLaunchInfoNV.Buffer
malloc
(int capacity) Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated withmemAlloc
.static VkCudaLaunchInfoNV.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkCudaLaunchInfoNV
malloc
(MemoryStack stack) Returns a newVkCudaLaunchInfoNV
instance allocated on the specifiedMemoryStack
.static int
nblockDimX
(long struct) Unsafe version ofblockDimX()
.static void
nblockDimX
(long struct, int value) Unsafe version ofblockDimX
.static int
nblockDimY
(long struct) Unsafe version ofblockDimY()
.static void
nblockDimY
(long struct, int value) Unsafe version ofblockDimY
.static int
nblockDimZ
(long struct) Unsafe version ofblockDimZ()
.static void
nblockDimZ
(long struct, int value) Unsafe version ofblockDimZ
.static long
nextraCount
(long struct) Unsafe version ofextraCount()
.static void
nextraCount
(long struct, long value) Sets the specified value to theextraCount
field of the specifiedstruct
.static long
nfunction
(long struct) Unsafe version offunction()
.static void
nfunction
(long struct, long value) Unsafe version offunction
.static int
ngridDimX
(long struct) Unsafe version ofgridDimX()
.static void
ngridDimX
(long struct, int value) Unsafe version ofgridDimX
.static int
ngridDimY
(long struct) Unsafe version ofgridDimY()
.static void
ngridDimY
(long struct, int value) Unsafe version ofgridDimY
.static int
ngridDimZ
(long struct) Unsafe version ofgridDimZ()
.static void
ngridDimZ
(long struct, int value) Unsafe version ofgridDimZ
.static long
nparamCount
(long struct) Unsafe version ofparamCount()
.static void
nparamCount
(long struct, long value) Sets the specified value to theparamCount
field of the specifiedstruct
.static @Nullable PointerBuffer
npExtras
(long struct) Unsafe version ofpExtras
.static void
npExtras
(long struct, @Nullable PointerBuffer value) Unsafe version ofpExtras
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static @Nullable PointerBuffer
npParams
(long struct) Unsafe version ofpParams
.static void
npParams
(long struct, @Nullable PointerBuffer value) Unsafe version ofpParams
.static int
nsharedMemBytes
(long struct) Unsafe version ofsharedMemBytes()
.static void
nsharedMemBytes
(long struct, int value) Unsafe version ofsharedMemBytes
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.long
paramCount
(long value) Sets the specified value to theparamCount
field.@Nullable PointerBuffer
pExtras()
pExtras
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thepExtras
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.@Nullable PointerBuffer
pParams()
pParams
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thepParams
field.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.int
sharedMemBytes
(int value) Sets the specified value to thesharedMemBytes
field.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV
value to thesType
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkCudaLaunchInfoNV
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkCudaLaunchInfoNV>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
function
public long function()- Returns:
- the value of the
function
field.
-
gridDimX
public int gridDimX()- Returns:
- the value of the
gridDimX
field.
-
gridDimY
public int gridDimY()- Returns:
- the value of the
gridDimY
field.
-
gridDimZ
public int gridDimZ()- Returns:
- the value of the
gridDimZ
field.
-
blockDimX
public int blockDimX()- Returns:
- the value of the
blockDimX
field.
-
blockDimY
public int blockDimY()- Returns:
- the value of the
blockDimY
field.
-
blockDimZ
public int blockDimZ()- Returns:
- the value of the
blockDimZ
field.
-
paramCount
public long paramCount()- Returns:
- the value of the
paramCount
field.
-
pParams
- Returns:
- a
PointerBuffer
view of the data pointed to by thepParams
field.
-
extraCount
public long extraCount()- Returns:
- the value of the
extraCount
field.
-
pExtras
- Returns:
- a
PointerBuffer
view of the data pointed to by thepExtras
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
function
Sets the specified value to thefunction
field. -
gridDimX
Sets the specified value to thegridDimX
field. -
gridDimY
Sets the specified value to thegridDimY
field. -
gridDimZ
Sets the specified value to thegridDimZ
field. -
blockDimX
Sets the specified value to theblockDimX
field. -
blockDimY
Sets the specified value to theblockDimY
field. -
blockDimZ
Sets the specified value to theblockDimZ
field. -
paramCount
Sets the specified value to theparamCount
field. -
pParams
Sets the address of the specifiedPointerBuffer
to thepParams
field. -
extraCount
Sets the specified value to theextraCount
field. -
pExtras
Sets the address of the specifiedPointerBuffer
to thepExtras
field. -
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 newVkCudaLaunchInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkCudaLaunchInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkCudaLaunchInfoNV
instance allocated withBufferUtils
. -
create
Returns a newVkCudaLaunchInfoNV
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkCudaLaunchInfoNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkCudaLaunchInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkCudaLaunchInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkCudaLaunchInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and 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 theparamCount
field of the specifiedstruct
. -
npParams
Unsafe version ofpParams
. -
nextraCount
public static void nextraCount(long struct, long value) Sets the specified value to theextraCount
field of the specifiedstruct
. -
npExtras
Unsafe version ofpExtras
.
-