public class VkRayTracingShaderGroupCreateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
type is RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_NV then generalShader must be a valid index into pStages referring to a shader of SHADER_STAGE_RAYGEN_BIT_NV, SHADER_STAGE_MISS_BIT_NV, or SHADER_STAGE_CALLABLE_BIT_NVtype is RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_NV then closestHitShader, anyHitShader, and intersectionShader must be SHADER_UNUSED_NVtype is RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV then intersectionShader must be a valid index into pStages referring to a shader of SHADER_STAGE_INTERSECTION_BIT_NVtype is RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_NV then intersectionShader must be SHADER_UNUSED_NVclosestHitShader must be either SHADER_UNUSED_NV or a valid index into pStages referring to a shader of SHADER_STAGE_CLOSEST_HIT_BIT_NVanyHitShader must be either SHADER_UNUSED_NV or a valid index into pStages referring to a shader of SHADER_STAGE_ANY_HIT_BIT_NVsType must be STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_NVpNext must be NULLtype must be a valid VkRayTracingShaderGroupTypeNV valueVkRayTracingPipelineCreateInfoNV
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.type – the type of hit group specified in this structure.generalShader – the index of the ray generation, miss, or callable shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_NV and SHADER_UNUSED_NV otherwise.closestHitShader – the optional index of the closest hit shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_NV or RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV and SHADER_UNUSED_NV otherwise.anyHitShader – the optional index of the any-hit shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_NV or RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV and SHADER_UNUSED_NV otherwise.intersectionShader – the index of the intersection shader from VkRayTracingPipelineCreateInfoNV::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_NV and SHADER_UNUSED_NV otherwise.
struct VkRayTracingShaderGroupCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkRayTracingShaderGroupTypeNV type;
uint32_t generalShader;
uint32_t closestHitShader;
uint32_t anyHitShader;
uint32_t intersectionShader;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkRayTracingShaderGroupCreateInfoNV.Buffer
An array of
VkRayTracingShaderGroupCreateInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ANYHITSHADER
The struct member offsets.
|
static int |
CLOSESTHITSHADER
The struct member offsets.
|
static int |
GENERALSHADER
The struct member offsets.
|
static int |
INTERSECTIONSHADER
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkRayTracingShaderGroupCreateInfoNV(java.nio.ByteBuffer container)
Creates a
VkRayTracingShaderGroupCreateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
anyHitShader()
Returns the value of the
anyHitShader field. |
VkRayTracingShaderGroupCreateInfoNV |
anyHitShader(int value)
Sets the specified value to the
anyHitShader field. |
static VkRayTracingShaderGroupCreateInfoNV |
calloc()
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated with memCalloc. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memCalloc. |
static VkRayTracingShaderGroupCreateInfoNV |
callocStack()
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkRayTracingShaderGroupCreateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
closestHitShader()
Returns the value of the
closestHitShader field. |
VkRayTracingShaderGroupCreateInfoNV |
closestHitShader(int value)
Sets the specified value to the
closestHitShader field. |
static VkRayTracingShaderGroupCreateInfoNV |
create()
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated with BufferUtils. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
create(int capacity)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with BufferUtils. |
static VkRayTracingShaderGroupCreateInfoNV |
create(long address)
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance for the specified memory address. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkRayTracingShaderGroupCreateInfoNV.Buffer instance at the specified memory. |
static VkRayTracingShaderGroupCreateInfoNV |
createSafe(long address)
|
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
int |
generalShader()
Returns the value of the
generalShader field. |
VkRayTracingShaderGroupCreateInfoNV |
generalShader(int value)
Sets the specified value to the
generalShader field. |
int |
intersectionShader()
Returns the value of the
intersectionShader field. |
VkRayTracingShaderGroupCreateInfoNV |
intersectionShader(int value)
Sets the specified value to the
intersectionShader field. |
static VkRayTracingShaderGroupCreateInfoNV |
malloc()
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated with memAlloc. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memAlloc. |
static VkRayTracingShaderGroupCreateInfoNV |
mallocStack()
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated on the thread-local MemoryStack. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkRayTracingShaderGroupCreateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkRayTracingShaderGroupCreateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack. |
static int |
nanyHitShader(long struct)
Unsafe version of
anyHitShader(). |
static void |
nanyHitShader(long struct,
int value)
Unsafe version of
anyHitShader. |
static int |
nclosestHitShader(long struct)
Unsafe version of
closestHitShader(). |
static void |
nclosestHitShader(long struct,
int value)
Unsafe version of
closestHitShader. |
static int |
ngeneralShader(long struct)
Unsafe version of
generalShader(). |
static void |
ngeneralShader(long struct,
int value)
Unsafe version of
generalShader. |
static int |
nintersectionShader(long struct)
Unsafe version of
intersectionShader(). |
static void |
nintersectionShader(long struct,
int value)
Unsafe version of
intersectionShader. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
long |
pNext()
Returns the value of the
pNext field. |
VkRayTracingShaderGroupCreateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkRayTracingShaderGroupCreateInfoNV |
set(int sType,
long pNext,
int type,
int generalShader,
int closestHitShader,
int anyHitShader,
int intersectionShader)
Initializes this struct with the specified values.
|
VkRayTracingShaderGroupCreateInfoNV |
set(VkRayTracingShaderGroupCreateInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkRayTracingShaderGroupCreateInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
int |
type()
Returns the value of the
type field. |
VkRayTracingShaderGroupCreateInfoNV |
type(int value)
Sets the specified value to the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int TYPE
public static final int GENERALSHADER
public static final int CLOSESTHITSHADER
public static final int ANYHITSHADER
public static final int INTERSECTIONSHADER
public VkRayTracingShaderGroupCreateInfoNV(java.nio.ByteBuffer container)
VkRayTracingShaderGroupCreateInfoNV instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int type()
type field.public int generalShader()
generalShader field.public int closestHitShader()
closestHitShader field.public int anyHitShader()
anyHitShader field.public int intersectionShader()
intersectionShader field.public VkRayTracingShaderGroupCreateInfoNV sType(int value)
sType field.public VkRayTracingShaderGroupCreateInfoNV pNext(long value)
pNext field.public VkRayTracingShaderGroupCreateInfoNV type(int value)
type field.public VkRayTracingShaderGroupCreateInfoNV generalShader(int value)
generalShader field.public VkRayTracingShaderGroupCreateInfoNV closestHitShader(int value)
closestHitShader field.public VkRayTracingShaderGroupCreateInfoNV anyHitShader(int value)
anyHitShader field.public VkRayTracingShaderGroupCreateInfoNV intersectionShader(int value)
intersectionShader field.public VkRayTracingShaderGroupCreateInfoNV set(int sType, long pNext, int type, int generalShader, int closestHitShader, int anyHitShader, int intersectionShader)
public VkRayTracingShaderGroupCreateInfoNV set(VkRayTracingShaderGroupCreateInfoNV src)
src - the source structpublic static VkRayTracingShaderGroupCreateInfoNV malloc()
VkRayTracingShaderGroupCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkRayTracingShaderGroupCreateInfoNV calloc()
VkRayTracingShaderGroupCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkRayTracingShaderGroupCreateInfoNV create()
VkRayTracingShaderGroupCreateInfoNV instance allocated with BufferUtils.public static VkRayTracingShaderGroupCreateInfoNV create(long address)
VkRayTracingShaderGroupCreateInfoNV instance for the specified memory address.@Nullable public static VkRayTracingShaderGroupCreateInfoNV createSafe(long address)
public static VkRayTracingShaderGroupCreateInfoNV.Buffer malloc(int capacity)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRayTracingShaderGroupCreateInfoNV.Buffer calloc(int capacity)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRayTracingShaderGroupCreateInfoNV.Buffer create(int capacity)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkRayTracingShaderGroupCreateInfoNV.Buffer create(long address, int capacity)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkRayTracingShaderGroupCreateInfoNV.Buffer createSafe(long address, int capacity)
public static VkRayTracingShaderGroupCreateInfoNV mallocStack()
VkRayTracingShaderGroupCreateInfoNV instance allocated on the thread-local MemoryStack.public static VkRayTracingShaderGroupCreateInfoNV callocStack()
VkRayTracingShaderGroupCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkRayTracingShaderGroupCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkRayTracingShaderGroupCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkRayTracingShaderGroupCreateInfoNV.Buffer mallocStack(int capacity)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkRayTracingShaderGroupCreateInfoNV.Buffer callocStack(int capacity)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkRayTracingShaderGroupCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkRayTracingShaderGroupCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int ntype(long struct)
type().public static int ngeneralShader(long struct)
generalShader().public static int nclosestHitShader(long struct)
closestHitShader().public static int nanyHitShader(long struct)
anyHitShader().public static int nintersectionShader(long struct)
intersectionShader().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ntype(long struct,
int value)
type.public static void ngeneralShader(long struct,
int value)
generalShader.public static void nclosestHitShader(long struct,
int value)
closestHitShader.public static void nanyHitShader(long struct,
int value)
anyHitShader.public static void nintersectionShader(long struct,
int value)
intersectionShader.Copyright LWJGL. All Rights Reserved. License terms.