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.NativeResource
Properties of the physical device for ray tracing.Description
If the
VkPhysicalDeviceRayTracingPropertiesNV
structure is included in thepNext
chain ofVkPhysicalDeviceProperties2
, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 class
VkPhysicalDeviceRayTracingPropertiesNV.Buffer
An array ofVkPhysicalDeviceRayTracingPropertiesNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MAXDESCRIPTORSETACCELERATIONSTRUCTURES
MAXGEOMETRYCOUNT
MAXINSTANCECOUNT
MAXRECURSIONDEPTH
MAXSHADERGROUPSTRIDE
MAXTRIANGLECOUNT
PNEXT
SHADERGROUPBASEALIGNMENT
SHADERGROUPHANDLESIZEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceRayTracingPropertiesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceRayTracingPropertiesNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceRayTracingPropertiesNV
calloc()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated withmemCalloc
.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceRayTracingPropertiesNV
callocStack()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNV
create()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated withBufferUtils
.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceRayTracingPropertiesNV
create(long address)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance for the specified memory address.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance at the specified memory.static VkPhysicalDeviceRayTracingPropertiesNV
createSafe(long address)
static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceRayTracingPropertiesNV
malloc()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated withmemAlloc
.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceRayTracingPropertiesNV
mallocStack()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceRayTracingPropertiesNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceRayTracingPropertiesNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the specifiedMemoryStack
.int
maxDescriptorSetAccelerationStructures()
Returns the value of themaxDescriptorSetAccelerationStructures
field.long
maxGeometryCount()
Returns the value of themaxGeometryCount
field.long
maxInstanceCount()
Returns the value of themaxInstanceCount
field.int
maxRecursionDepth()
Returns the value of themaxRecursionDepth
field.int
maxShaderGroupStride()
Returns the value of themaxShaderGroupStride
field.long
maxTriangleCount()
Returns the value of themaxTriangleCount
field.static int
nmaxDescriptorSetAccelerationStructures(long struct)
Unsafe version ofmaxDescriptorSetAccelerationStructures()
.static long
nmaxGeometryCount(long struct)
Unsafe version ofmaxGeometryCount()
.static long
nmaxInstanceCount(long struct)
Unsafe version ofmaxInstanceCount()
.static int
nmaxRecursionDepth(long struct)
Unsafe version ofmaxRecursionDepth()
.static int
nmaxShaderGroupStride(long struct)
Unsafe version ofmaxShaderGroupStride()
.static long
nmaxTriangleCount(long struct)
Unsafe version ofmaxTriangleCount()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nshaderGroupBaseAlignment(long struct)
Unsafe version ofshaderGroupBaseAlignment()
.static int
nshaderGroupHandleSize(long struct)
Unsafe version ofshaderGroupHandleSize()
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceRayTracingPropertiesNV
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceRayTracingPropertiesNV
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceRayTracingPropertiesNV
set(VkPhysicalDeviceRayTracingPropertiesNV src)
Copies the specified struct data to this struct.int
shaderGroupBaseAlignment()
Returns the value of theshaderGroupBaseAlignment
field.int
shaderGroupHandleSize()
Returns the value of theshaderGroupHandleSize
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceRayTracingPropertiesNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
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 aVkPhysicalDeviceRayTracingPropertiesNV
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
shaderGroupHandleSize
public int shaderGroupHandleSize()
Returns the value of theshaderGroupHandleSize
field.
-
maxRecursionDepth
public int maxRecursionDepth()
Returns the value of themaxRecursionDepth
field.
-
maxShaderGroupStride
public int maxShaderGroupStride()
Returns the value of themaxShaderGroupStride
field.
-
shaderGroupBaseAlignment
public int shaderGroupBaseAlignment()
Returns the value of theshaderGroupBaseAlignment
field.
-
maxGeometryCount
public long maxGeometryCount()
Returns the value of themaxGeometryCount
field.
-
maxInstanceCount
public long maxInstanceCount()
Returns the value of themaxInstanceCount
field.
-
maxTriangleCount
public long maxTriangleCount()
Returns the value of themaxTriangleCount
field.
-
maxDescriptorSetAccelerationStructures
public int maxDescriptorSetAccelerationStructures()
Returns the value of themaxDescriptorSetAccelerationStructures
field.
-
sType
public VkPhysicalDeviceRayTracingPropertiesNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceRayTracingPropertiesNV pNext(long value)
Sets the specified value to thepNext
field.
-
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 newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceRayTracingPropertiesNV calloc()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV create()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV create(long address)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceRayTracingPropertiesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance 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 newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV callocStack()
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceRayTracingPropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-