Package org.lwjgl.vulkan
Class VkPhysicalDeviceRayTracingPropertiesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceRayTracingPropertiesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceRayTracingPropertiesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProperties of the physical device for ray tracing.Description
If the
VkPhysicalDeviceRayTracingPropertiesNVstructure is included in thepNextchain ofVkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.shaderGroupHandleSize– size in bytes of the shader header.maxRecursionDepth– the maximum number of levels of recursion allowed in a trace command.maxShaderGroupStride– the maximum stride in bytes allowed between shader groups in the SBT.shaderGroupBaseAlignment– the required alignment in bytes for the base of the SBTs.maxGeometryCount– the maximum number of geometries in the bottom level acceleration structure.maxInstanceCount– the maximum number of instances in the top level acceleration structure.maxTriangleCount– the maximum number of triangles in all geometries in the bottom level acceleration structure.maxDescriptorSetAccelerationStructures– the maximum number of acceleration structure descriptors that are allowed in a descriptor set.
Layout
struct VkPhysicalDeviceRayTracingPropertiesNV { VkStructureType sType; void * pNext; uint32_t shaderGroupHandleSize; uint32_t maxRecursionDepth; uint32_t maxShaderGroupStride; uint32_t shaderGroupBaseAlignment; uint64_t maxGeometryCount; uint64_t maxInstanceCount; uint64_t maxTriangleCount; uint32_t maxDescriptorSetAccelerationStructures; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceRayTracingPropertiesNV.BufferAn array ofVkPhysicalDeviceRayTracingPropertiesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXDESCRIPTORSETACCELERATIONSTRUCTURES
MAXGEOMETRYCOUNT
MAXINSTANCECOUNT
MAXRECURSIONDEPTH
MAXSHADERGROUPSTRIDE
MAXTRIANGLECOUNT
PNEXT
SHADERGROUPBASEALIGNMENT
SHADERGROUPHANDLESIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceRayTracingPropertiesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceRayTracingPropertiesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceRayTracingPropertiesNVcalloc()Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated withmemCalloc.static VkPhysicalDeviceRayTracingPropertiesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceRayTracingPropertiesNVcallocStack()Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNV.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNVcreate()Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated withBufferUtils.static VkPhysicalDeviceRayTracingPropertiesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceRayTracingPropertiesNVcreate(long address)Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance for the specified memory address.static VkPhysicalDeviceRayTracingPropertiesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceRayTracingPropertiesNVcreateSafe(long address)static VkPhysicalDeviceRayTracingPropertiesNV.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceRayTracingPropertiesNVmalloc()Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated withmemAlloc.static VkPhysicalDeviceRayTracingPropertiesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceRayTracingPropertiesNVmallocStack()Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceRayTracingPropertiesNV.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceRayTracingPropertiesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRayTracingPropertiesNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStack.intmaxDescriptorSetAccelerationStructures()Returns the value of themaxDescriptorSetAccelerationStructuresfield.longmaxGeometryCount()Returns the value of themaxGeometryCountfield.longmaxInstanceCount()Returns the value of themaxInstanceCountfield.intmaxRecursionDepth()Returns the value of themaxRecursionDepthfield.intmaxShaderGroupStride()Returns the value of themaxShaderGroupStridefield.longmaxTriangleCount()Returns the value of themaxTriangleCountfield.static intnmaxDescriptorSetAccelerationStructures(long struct)Unsafe version ofmaxDescriptorSetAccelerationStructures().static longnmaxGeometryCount(long struct)Unsafe version ofmaxGeometryCount().static longnmaxInstanceCount(long struct)Unsafe version ofmaxInstanceCount().static intnmaxRecursionDepth(long struct)Unsafe version ofmaxRecursionDepth().static intnmaxShaderGroupStride(long struct)Unsafe version ofmaxShaderGroupStride().static longnmaxTriangleCount(long struct)Unsafe version ofmaxTriangleCount().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderGroupBaseAlignment(long struct)Unsafe version ofshaderGroupBaseAlignment().static intnshaderGroupHandleSize(long struct)Unsafe version ofshaderGroupHandleSize().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceRayTracingPropertiesNVpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceRayTracingPropertiesNVset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceRayTracingPropertiesNVset(VkPhysicalDeviceRayTracingPropertiesNV src)Copies the specified struct data to this struct.intshaderGroupBaseAlignment()Returns the value of theshaderGroupBaseAlignmentfield.intshaderGroupHandleSize()Returns the value of theshaderGroupHandleSizefield.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceRayTracingPropertiesNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, SHADERGROUPHANDLESIZE, MAXRECURSIONDEPTH, MAXSHADERGROUPSTRIDE, SHADERGROUPBASEALIGNMENT, MAXGEOMETRYCOUNT, MAXINSTANCECOUNT, MAXTRIANGLECOUNT, MAXDESCRIPTORSETACCELERATIONSTRUCTURES
The struct member offsets.
-
-
Constructor Detail
-
VkPhysicalDeviceRayTracingPropertiesNV
public VkPhysicalDeviceRayTracingPropertiesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceRayTracingPropertiesNVinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
shaderGroupHandleSize
public int shaderGroupHandleSize()
Returns the value of theshaderGroupHandleSizefield.
-
maxRecursionDepth
public int maxRecursionDepth()
Returns the value of themaxRecursionDepthfield.
-
maxShaderGroupStride
public int maxShaderGroupStride()
Returns the value of themaxShaderGroupStridefield.
-
shaderGroupBaseAlignment
public int shaderGroupBaseAlignment()
Returns the value of theshaderGroupBaseAlignmentfield.
-
maxGeometryCount
public long maxGeometryCount()
Returns the value of themaxGeometryCountfield.
-
maxInstanceCount
public long maxInstanceCount()
Returns the value of themaxInstanceCountfield.
-
maxTriangleCount
public long maxTriangleCount()
Returns the value of themaxTriangleCountfield.
-
maxDescriptorSetAccelerationStructures
public int maxDescriptorSetAccelerationStructures()
Returns the value of themaxDescriptorSetAccelerationStructuresfield.
-
sType
public VkPhysicalDeviceRayTracingPropertiesNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceRayTracingPropertiesNV pNext(long value)
Sets the specified value to thepNextfield.
-
set
public VkPhysicalDeviceRayTracingPropertiesNV set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceRayTracingPropertiesNV set(VkPhysicalDeviceRayTracingPropertiesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceRayTracingPropertiesNV malloc()
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceRayTracingPropertiesNV calloc()
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV create()
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV create(long address)
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceRayTracingPropertiesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceRayTracingPropertiesNV mallocStack()
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV callocStack()
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceRayTracingPropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nshaderGroupHandleSize
public static int nshaderGroupHandleSize(long struct)
Unsafe version ofshaderGroupHandleSize().
-
nmaxRecursionDepth
public static int nmaxRecursionDepth(long struct)
Unsafe version ofmaxRecursionDepth().
-
nmaxShaderGroupStride
public static int nmaxShaderGroupStride(long struct)
Unsafe version ofmaxShaderGroupStride().
-
nshaderGroupBaseAlignment
public static int nshaderGroupBaseAlignment(long struct)
Unsafe version ofshaderGroupBaseAlignment().
-
nmaxGeometryCount
public static long nmaxGeometryCount(long struct)
Unsafe version ofmaxGeometryCount().
-
nmaxInstanceCount
public static long nmaxInstanceCount(long struct)
Unsafe version ofmaxInstanceCount().
-
nmaxTriangleCount
public static long nmaxTriangleCount(long struct)
Unsafe version ofmaxTriangleCount().
-
nmaxDescriptorSetAccelerationStructures
public static int nmaxDescriptorSetAccelerationStructures(long struct)
Unsafe version ofmaxDescriptorSetAccelerationStructures().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-