Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkRayTracingShaderGroupCreateInfoKHR

extends Struct<VkRayTracingShaderGroupCreateInfoKHR>
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.
Description

If the pipeline is created with PIPELINE_CREATE_LIBRARY_BIT_KHR and the pipelineLibraryGroupHandles feature is enabled, pShaderGroupCaptureReplayHandle is inherited by all pipelines which link against this pipeline and remains bitwise identical for any pipeline which references this pipeline library.

Valid Usage
Valid Usage (Implicit)
See Also

VkRayTracingPipelineCreateInfoKHR

Layout


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

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
PSHADERGROUPCAPTUREREPLAYHANDLE

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
VkRayTracingShaderGroupCreateInfoKHR(ByteBuffer container)

Creates a VkRayTracingShaderGroupCreateInfoKHR 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 VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR or RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and SHADER_UNUSED_KHR otherwise.

public VkRayTracingShaderGroupCreateInfoKHR
anyHitShader(int value)

Sets the specified value to the anyHitShader field.

public static VkRayTracingShaderGroupCreateInfoKHR
calloc()

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance allocated with memCalloc.

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

Returns a new VkRayTracingShaderGroupCreateInfoKHR.Buffer instance allocated with memCalloc.

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

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

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

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

public int
closestHitShader()

the optional index of the closest hit shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR or RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and SHADER_UNUSED_KHR otherwise.

public VkRayTracingShaderGroupCreateInfoKHR
closestHitShader(int value)

Sets the specified value to the closestHitShader field.

protected VkRayTracingShaderGroupCreateInfoKHR
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 VkRayTracingShaderGroupCreateInfoKHR
create()

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance allocated with BufferUtils.

public static VkRayTracingShaderGroupCreateInfoKHR
create(long address)

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance for the specified memory address.

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

Returns a new VkRayTracingShaderGroupCreateInfoKHR.Buffer instance allocated with BufferUtils.

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

Create a VkRayTracingShaderGroupCreateInfoKHR.Buffer instance at the specified memory.

public static VkRayTracingShaderGroupCreateInfoKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkRayTracingShaderGroupCreateInfoKHR.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 VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_KHR, and SHADER_UNUSED_KHR otherwise.

public VkRayTracingShaderGroupCreateInfoKHR
generalShader(int value)

Sets the specified value to the generalShader field.

public int
intersectionShader()

the index of the intersection shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and SHADER_UNUSED_KHR otherwise.

public VkRayTracingShaderGroupCreateInfoKHR
intersectionShader(int value)

Sets the specified value to the intersectionShader field.

public static VkRayTracingShaderGroupCreateInfoKHR
malloc()

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance allocated with memAlloc.

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

Returns a new VkRayTracingShaderGroupCreateInfoKHR.Buffer instance allocated with memAlloc.

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

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance allocated on the specified MemoryStack.

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

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

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 long
public static void
npShaderGroupCaptureReplayHandle(long struct, long value)

Unsafe version of pShaderGroupCaptureReplayHandle.

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 VkRayTracingShaderGroupCreateInfoKHR
pNext(long value)

Sets the specified value to the pNext field.

public long
pShaderGroupCaptureReplayHandle()

NULL or a pointer to replay information for this shader group queried from GetRayTracingCaptureReplayShaderGroupHandlesKHR, as described in Ray Tracing Capture Replay.

public VkRayTracingShaderGroupCreateInfoKHR
pShaderGroupCaptureReplayHandle(long value)

Sets the specified value to the pShaderGroupCaptureReplayHandle field.

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

Initializes this struct with the specified values.

public VkRayTracingShaderGroupCreateInfoKHR

Returns:

this struct
set
(VkRayTracingShaderGroupCreateInfoKHR
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 VkRayTracingShaderGroupCreateInfoKHR
sType(int value)

Sets the specified value to the sType field.

public VkRayTracingShaderGroupCreateInfoKHR
public int
type()

the type of hit group specified in this structure.

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

PSHADERGROUPCAPTUREREPLAYHANDLEback to summary
public static final int PSHADERGROUPCAPTUREREPLAYHANDLE

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

VkRayTracingShaderGroupCreateInfoKHRback to summary
protected VkRayTracingShaderGroupCreateInfoKHR(long address, ByteBuffer container)
VkRayTracingShaderGroupCreateInfoKHRback to summary
public VkRayTracingShaderGroupCreateInfoKHR(ByteBuffer container)

Creates a VkRayTracingShaderGroupCreateInfoKHR 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 VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR or RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and SHADER_UNUSED_KHR otherwise.

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

Sets the specified value to the anyHitShader field.

callocback to summary
public static VkRayTracingShaderGroupCreateInfoKHR calloc()

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkRayTracingShaderGroupCreateInfoKHR calloc(MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoKHR 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 VkRayTracingShaderGroupCreateInfoKHR.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoKHR.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

closestHitShaderback to summary
public int closestHitShader()

the optional index of the closest hit shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR or RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and SHADER_UNUSED_KHR otherwise.

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

Sets the specified value to the closestHitShader field.

createback to summary
protected VkRayTracingShaderGroupCreateInfoKHR 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 VkRayTracingShaderGroupCreateInfoKHR create()

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance allocated with BufferUtils.

createback to summary
public static VkRayTracingShaderGroupCreateInfoKHR create(long address)

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance for the specified memory address.

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

Returns a new VkRayTracingShaderGroupCreateInfoKHR.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a VkRayTracingShaderGroupCreateInfoKHR.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkRayTracingShaderGroupCreateInfoKHR createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkRayTracingShaderGroupCreateInfoKHR.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 VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_KHR, and SHADER_UNUSED_KHR otherwise.

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

Sets the specified value to the generalShader field.

intersectionShaderback to summary
public int intersectionShader()

the index of the intersection shader from VkRayTracingPipelineCreateInfoKHR::pStages in the group if the shader group has type of RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR, and SHADER_UNUSED_KHR otherwise.

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

Sets the specified value to the intersectionShader field.

mallocback to summary
public static VkRayTracingShaderGroupCreateInfoKHR malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkRayTracingShaderGroupCreateInfoKHR malloc(MemoryStack stack)

Returns a new VkRayTracingShaderGroupCreateInfoKHR instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

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.

npShaderGroupCaptureReplayHandleback to summary
public static long npShaderGroupCaptureReplayHandle(long struct)

Unsafe version of pShaderGroupCaptureReplayHandle.

npShaderGroupCaptureReplayHandleback to summary
public static void npShaderGroupCaptureReplayHandle(long struct, long value)

Unsafe version of pShaderGroupCaptureReplayHandle.

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 VkRayTracingShaderGroupCreateInfoKHR pNext(long value)

Sets the specified value to the pNext field.

pShaderGroupCaptureReplayHandleback to summary
public long pShaderGroupCaptureReplayHandle()

NULL or a pointer to replay information for this shader group queried from GetRayTracingCaptureReplayShaderGroupHandlesKHR, as described in Ray Tracing Capture Replay. Ignored if VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTracingPipelineShaderGroupHandleCaptureReplay is FALSE.

Annotations
@NativeType:void const *
pShaderGroupCaptureReplayHandleback to summary
public VkRayTracingShaderGroupCreateInfoKHR pShaderGroupCaptureReplayHandle(long value)

Sets the specified value to the pShaderGroupCaptureReplayHandle field.

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

Initializes this struct with the specified values.

setback to summary
public VkRayTracingShaderGroupCreateInfoKHR set(VkRayTracingShaderGroupCreateInfoKHR src)

Copies the specified struct data to this struct.

Parameters
src:VkRayTracingShaderGroupCreateInfoKHR

the source struct

Returns:VkRayTracingShaderGroupCreateInfoKHR

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 VkRayTracingShaderGroupCreateInfoKHR sType(int value)

Sets the specified value to the sType field.

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

Sets the STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR 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 VkRayTracingShaderGroupCreateInfoKHR type(int value)

Sets the specified value to the type field.

org.lwjgl.vulkan back to summary

public Class VkRayTracingShaderGroupCreateInfoKHR.Buffer

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

An array of VkRayTracingShaderGroupCreateInfoKHR structs.

Field Summary

Modifier and TypeField and Description
private static final VkRayTracingShaderGroupCreateInfoKHR

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkRayTracingShaderGroupCreateInfoKHR.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 VkRayTracingShaderGroupCreateInfoKHR.Buffer
anyHitShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#anyHitShader field.

public int
public VkRayTracingShaderGroupCreateInfoKHR.Buffer
closestHitShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#closestHitShader field.

public int
public VkRayTracingShaderGroupCreateInfoKHR.Buffer
generalShader(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#generalShader field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#intersectionShader field.

public long

Returns:

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

public VkRayTracingShaderGroupCreateInfoKHR.Buffer
pNext(long value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#pNext field.

public long
public VkRayTracingShaderGroupCreateInfoKHR.Buffer
protected VkRayTracingShaderGroupCreateInfoKHR.Buffer
public int

Returns:

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

public VkRayTracingShaderGroupCreateInfoKHR.Buffer
sType(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#sType field.

public VkRayTracingShaderGroupCreateInfoKHR.Buffer
public int

Returns:

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

public VkRayTracingShaderGroupCreateInfoKHR.Buffer
type(int value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#type field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkRayTracingShaderGroupCreateInfoKHR ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkRayTracingShaderGroupCreateInfoKHR.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 VkRayTracingShaderGroupCreateInfoKHR#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 VkRayTracingShaderGroupCreateInfoKHR#anyHitShader field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#anyHitShader field.

closestHitShaderback to summary
public int closestHitShader()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoKHR#closestHitShader field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#closestHitShader field.

generalShaderback to summary
public int generalShader()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoKHR#generalShader field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#generalShader field.

getElementFactoryback to summary
protected VkRayTracingShaderGroupCreateInfoKHR getElementFactory()

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

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

the value of the VkRayTracingShaderGroupCreateInfoKHR#intersectionShader field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#intersectionShader field.

pNextback to summary
public long pNext()
Returns:long

the value of the VkRayTracingShaderGroupCreateInfoKHR#pNext field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#pNext field.

pShaderGroupCaptureReplayHandleback to summary
public long pShaderGroupCaptureReplayHandle()
Returns:long

the value of the VkRayTracingShaderGroupCreateInfoKHR#pShaderGroupCaptureReplayHandle field.

Annotations
@NativeType:void const *
pShaderGroupCaptureReplayHandleback to summary
public VkRayTracingShaderGroupCreateInfoKHR.Buffer pShaderGroupCaptureReplayHandle(long value)

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#pShaderGroupCaptureReplayHandle field.

selfback to summary
protected VkRayTracingShaderGroupCreateInfoKHR.Buffer self()

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

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

the value of the VkRayTracingShaderGroupCreateInfoKHR#sType field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#sType field.

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

Sets the STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR value to the VkRayTracingShaderGroupCreateInfoKHR#sType field.

typeback to summary
public int type()
Returns:int

the value of the VkRayTracingShaderGroupCreateInfoKHR#type field.

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

Sets the specified value to the VkRayTracingShaderGroupCreateInfoKHR#type field.