Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkRayTracingShaderGroupCreateInfoNV

extends Struct<VkRayTracingShaderGroupCreateInfoNV>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying shaders in a shader group.
Valid Usage
Valid Usage (Implicit)
See Also

VkRayTracingPipelineCreateInfoNV

Layout


struct VkRayTracingShaderGroupCreateInfoNV {
    VkStructureType sType;
    void const * pNext;
    VkRayTracingShaderGroupTypeKHR type;
    uint32_t generalShader;
    uint32_t closestHitShader;
    uint32_t anyHitShader;
    uint32_t intersectionShader;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ANYHITSHADER

The struct member offsets.

public static final int
CLOSESTHITSHADER

The struct member offsets.

public static final int
GENERALSHADER

The struct member offsets.

public static final int
INTERSECTIONSHADER

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkRayTracingShaderGroupCreateInfoNV(ByteBuffer container)

Creates a VkRayTracingShaderGroupCreateInfoNV instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
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.

public VkRayTracingShaderGroupCreateInfoNV
anyHitShader(int value)

Sets the specified value to the anyHitShader field.

public static VkRayTracingShaderGroupCreateInfoNV
calloc()

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated with memCalloc.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memCalloc.

public static VkRayTracingShaderGroupCreateInfoNV
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkRayTracingShaderGroupCreateInfoNV
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingShaderGroupCreateInfoNV
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingShaderGroupCreateInfoNV.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingShaderGroupCreateInfoNV.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
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.

public VkRayTracingShaderGroupCreateInfoNV
closestHitShader(int value)

Sets the specified value to the closestHitShader field.

protected VkRayTracingShaderGroupCreateInfoNV
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkRayTracingShaderGroupCreateInfoNV
create()

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated with BufferUtils.

public static VkRayTracingShaderGroupCreateInfoNV
create(long address)

Returns a new VkRayTracingShaderGroupCreateInfoNV instance for the specified memory address.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with BufferUtils.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkRayTracingShaderGroupCreateInfoNV.Buffer instance at the specified memory.

public static VkRayTracingShaderGroupCreateInfoNV
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
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.

public VkRayTracingShaderGroupCreateInfoNV
generalShader(int value)

Sets the specified value to the generalShader field.

public int
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.

public VkRayTracingShaderGroupCreateInfoNV
intersectionShader(int value)

Sets the specified value to the intersectionShader field.

public static VkRayTracingShaderGroupCreateInfoNV
malloc()

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated with memAlloc.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memAlloc.

public static VkRayTracingShaderGroupCreateInfoNV
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack.

public static VkRayTracingShaderGroupCreateInfoNV
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingShaderGroupCreateInfoNV
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingShaderGroupCreateInfoNV.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingShaderGroupCreateInfoNV.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nanyHitShader(long struct)

Unsafe version of anyHitShader.

public static void
nanyHitShader(long struct, int value)

Unsafe version of anyHitShader.

public static int
nclosestHitShader(long struct)

Unsafe version of closestHitShader.

public static void
nclosestHitShader(long struct, int value)

Unsafe version of closestHitShader.

public static int
ngeneralShader(long struct)

Unsafe version of generalShader.

public static void
ngeneralShader(long struct, int value)

Unsafe version of generalShader.

public static int
nintersectionShader(long struct)

Unsafe version of intersectionShader.

public static void
nintersectionShader(long struct, int value)

Unsafe version of intersectionShader.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkRayTracingShaderGroupCreateInfoNV
pNext(long value)

Sets the specified value to the pNext field.

public VkRayTracingShaderGroupCreateInfoNV
set(int sType, long pNext, int type, int generalShader, int closestHitShader, int anyHitShader, int intersectionShader)

Initializes this struct with the specified values.

public VkRayTracingShaderGroupCreateInfoNV

Returns:

this struct
set
(VkRayTracingShaderGroupCreateInfoNV
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkRayTracingShaderGroupCreateInfoNV
sType(int value)

Sets the specified value to the sType field.

public VkRayTracingShaderGroupCreateInfoNV
public int
type()

the type of hit group specified in this structure.

public VkRayTracingShaderGroupCreateInfoNV
type(int value)

Sets the specified value to the type field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

ANYHITSHADERback to summary
public static final int ANYHITSHADER

The struct member offsets.

CLOSESTHITSHADERback to summary
public static final int CLOSESTHITSHADER

The struct member offsets.

GENERALSHADERback to summary
public static final int GENERALSHADER

The struct member offsets.

INTERSECTIONSHADERback to summary
public static final int INTERSECTIONSHADER

The struct member offsets.

PNEXTback to summary
public static final int PNEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STYPEback to summary
public static final int STYPE

The struct member offsets.

TYPEback to summary
public static final int TYPE

The struct member offsets.

Constructor Detail

VkRayTracingShaderGroupCreateInfoNVback to summary
protected VkRayTracingShaderGroupCreateInfoNV(long address, ByteBuffer container)
VkRayTracingShaderGroupCreateInfoNVback to summary
public VkRayTracingShaderGroupCreateInfoNV(ByteBuffer container)

Creates a 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.

Method Detail

anyHitShaderback to summary
public int 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.

Annotations
@NativeType:uint32_t
anyHitShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV anyHitShader(int value)

Sets the specified value to the anyHitShader field.

callocback to summary
public static VkRayTracingShaderGroupCreateInfoNV calloc()

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer calloc(int capacity)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkRayTracingShaderGroupCreateInfoNV calloc(MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
closestHitShaderback to summary
public int 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.

Annotations
@NativeType:uint32_t
closestHitShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV closestHitShader(int value)

Sets the specified value to the closestHitShader field.

createback to summary
protected VkRayTracingShaderGroupCreateInfoNV create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkRayTracingShaderGroupCreateInfoNV create()

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated with BufferUtils.

createback to summary
public static VkRayTracingShaderGroupCreateInfoNV create(long address)

Returns a new VkRayTracingShaderGroupCreateInfoNV instance for the specified memory address.

createback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer create(int capacity)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer create(long address, int capacity)

Create a VkRayTracingShaderGroupCreateInfoNV.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkRayTracingShaderGroupCreateInfoNV createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
generalShaderback to summary
public int 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.

Annotations
@NativeType:uint32_t
generalShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV generalShader(int value)

Sets the specified value to the generalShader field.

intersectionShaderback to summary
public int 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.

Annotations
@NativeType:uint32_t
intersectionShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV intersectionShader(int value)

Sets the specified value to the intersectionShader field.

mallocback to summary
public static VkRayTracingShaderGroupCreateInfoNV malloc()

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer malloc(int capacity)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkRayTracingShaderGroupCreateInfoNV malloc(MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoNV instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static VkRayTracingShaderGroupCreateInfoNV.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nanyHitShaderback to summary
public static int nanyHitShader(long struct)

Unsafe version of anyHitShader.

nanyHitShaderback to summary
public static void nanyHitShader(long struct, int value)

Unsafe version of anyHitShader.

nclosestHitShaderback to summary
public static int nclosestHitShader(long struct)

Unsafe version of closestHitShader.

nclosestHitShaderback to summary
public static void nclosestHitShader(long struct, int value)

Unsafe version of closestHitShader.

ngeneralShaderback to summary
public static int ngeneralShader(long struct)

Unsafe version of generalShader.

ngeneralShaderback to summary
public static void ngeneralShader(long struct, int value)

Unsafe version of generalShader.

nintersectionShaderback to summary
public static int nintersectionShader(long struct)

Unsafe version of intersectionShader.

nintersectionShaderback to summary
public static void nintersectionShader(long struct, int value)

Unsafe version of intersectionShader.

npNextback to summary
public static long npNext(long struct)

Unsafe version of pNext.

npNextback to summary
public static void npNext(long struct, long value)

Unsafe version of pNext.

nsTypeback to summary
public static int nsType(long struct)

Unsafe version of sType.

nsTypeback to summary
public static void nsType(long struct, int value)

Unsafe version of sType.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

ntypeback to summary
public static void ntype(long struct, int value)

Unsafe version of type.

pNextback to summary
public long pNext()

NULL or a pointer to a structure extending this structure.

Annotations
@NativeType:void const *
pNextback to summary
public VkRayTracingShaderGroupCreateInfoNV pNext(long value)

Sets the specified value to the pNext field.

setback to summary
public VkRayTracingShaderGroupCreateInfoNV set(int sType, long pNext, int type, int generalShader, int closestHitShader, int anyHitShader, int intersectionShader)

Initializes this struct with the specified values.

setback to summary
public VkRayTracingShaderGroupCreateInfoNV set(VkRayTracingShaderGroupCreateInfoNV src)

Copies the specified struct data to this struct.

Parameters
src:VkRayTracingShaderGroupCreateInfoNV

the source struct

Returns:VkRayTracingShaderGroupCreateInfoNV

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
sTypeback to summary
public int sType()

a VkStructureType value identifying this structure.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkRayTracingShaderGroupCreateInfoNV sType(int value)

Sets the specified value to the sType field.

sType$Defaultback to summary
public VkRayTracingShaderGroupCreateInfoNV sType$Default()

Sets the STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV value to the sType field.

typeback to summary
public int type()

the type of hit group specified in this structure.

Annotations
@NativeType:VkRayTracingShaderGroupTypeKHR
typeback to summary
public VkRayTracingShaderGroupCreateInfoNV type(int value)

Sets the specified value to the type field.

org.lwjgl.vulkan back to summary

public Class VkRayTracingShaderGroupCreateInfoNV.Buffer

extends StructBuffer<VkRayTracingShaderGroupCreateInfoNV, VkRayTracingShaderGroupCreateInfoNV.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkRayTracingShaderGroupCreateInfoNV structs.

Field Summary

Modifier and TypeField and Description
private static final VkRayTracingShaderGroupCreateInfoNV

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int
public VkRayTracingShaderGroupCreateInfoNV.Buffer
anyHitShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#anyHitShader field.

public int
public VkRayTracingShaderGroupCreateInfoNV.Buffer
closestHitShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#closestHitShader field.

public int
public VkRayTracingShaderGroupCreateInfoNV.Buffer
generalShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#generalShader field.

protected VkRayTracingShaderGroupCreateInfoNV
public int
public VkRayTracingShaderGroupCreateInfoNV.Buffer
intersectionShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#intersectionShader field.

public long

Returns:

the value of the VkRayTracingShaderGroupCreateInfoNV#pNext field.
pNext
()

public VkRayTracingShaderGroupCreateInfoNV.Buffer
pNext(long value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#pNext field.

protected VkRayTracingShaderGroupCreateInfoNV.Buffer
public int

Returns:

the value of the VkRayTracingShaderGroupCreateInfoNV#sType field.
sType
()

public VkRayTracingShaderGroupCreateInfoNV.Buffer
sType(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#sType field.

public VkRayTracingShaderGroupCreateInfoNV.Buffer
public int

Returns:

the value of the VkRayTracingShaderGroupCreateInfoNV#type field.
type
()

public VkRayTracingShaderGroupCreateInfoNV.Buffer
type(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#type field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkRayTracingShaderGroupCreateInfoNV ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkRayTracingShaderGroupCreateInfoNV.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkRayTracingShaderGroupCreateInfoNV#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

anyHitShaderback to summary
public int anyHitShader()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoNV#anyHitShader field.

Annotations
@NativeType:uint32_t
anyHitShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer anyHitShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#anyHitShader field.

closestHitShaderback to summary
public int closestHitShader()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoNV#closestHitShader field.

Annotations
@NativeType:uint32_t
closestHitShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer closestHitShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#closestHitShader field.

generalShaderback to summary
public int generalShader()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoNV#generalShader field.

Annotations
@NativeType:uint32_t
generalShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer generalShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#generalShader field.

getElementFactoryback to summary
protected VkRayTracingShaderGroupCreateInfoNV getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
intersectionShaderback to summary
public int intersectionShader()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoNV#intersectionShader field.

Annotations
@NativeType:uint32_t
intersectionShaderback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer intersectionShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#intersectionShader field.

pNextback to summary
public long pNext()
Returns:long

the value of the VkRayTracingShaderGroupCreateInfoNV#pNext field.

Annotations
@NativeType:void const *
pNextback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer pNext(long value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#pNext field.

selfback to summary
protected VkRayTracingShaderGroupCreateInfoNV.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
sTypeback to summary
public int sType()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoNV#sType field.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer sType(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#sType field.

sType$Defaultback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer sType$Default()

Sets the STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV value to the VkRayTracingShaderGroupCreateInfoNV#sType field.

typeback to summary
public int type()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoNV#type field.

Annotations
@NativeType:VkRayTracingShaderGroupTypeKHR
typeback to summary
public VkRayTracingShaderGroupCreateInfoNV.Buffer type(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoNV#type field.