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
Due to the fact that the geometry, instance, and triangle counts are specified at acceleration structure creation as 32-bit values,
maxGeometryCount,maxInstanceCount, andmaxTriangleCountmust not exceed232-1.If the
VkPhysicalDeviceRayTracingPropertiesNVstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Limits specified by this structure must match those specified with the same name in
VkPhysicalDeviceAccelerationStructurePropertiesKHRandVkPhysicalDeviceRayTracingPipelinePropertiesKHR.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV
Layout
struct VkPhysicalDeviceRayTracingPropertiesNV { VkStructureTypesType(); void *pNext(); uint32_tshaderGroupHandleSize(); uint32_tmaxRecursionDepth(); uint32_tmaxShaderGroupStride(); uint32_tshaderGroupBaseAlignment(); uint64_tmaxGeometryCount(); uint64_tmaxInstanceCount(); uint64_tmaxTriangleCount(); uint32_tmaxDescriptorSetAccelerationStructures(); }
-
-
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 Deprecated 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 VkPhysicalDeviceRayTracingPropertiesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPropertiesNVcallocStack()Deprecated.static VkPhysicalDeviceRayTracingPropertiesNV.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceRayTracingPropertiesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceRayTracingPropertiesNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPhysicalDeviceRayTracingPropertiesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRayTracingPropertiesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRayTracingPropertiesNVmallocStack()Deprecated.static VkPhysicalDeviceRayTracingPropertiesNV.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceRayTracingPropertiesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceRayTracingPropertiesNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmaxDescriptorSetAccelerationStructures()the maximum number of acceleration structure descriptors that are allowed in a descriptor set.longmaxGeometryCount()the maximum number of geometries in the bottom level acceleration structure.longmaxInstanceCount()the maximum number of instances in the top level acceleration structure.intmaxRecursionDepth()the maximum number of levels of recursion allowed in a trace command.intmaxShaderGroupStride()the maximum stride in bytes allowed between shader groups in the shader binding table.longmaxTriangleCount()the maximum number of triangles in all geometries in the bottom level acceleration structure.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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceRayTracingPropertiesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceRayTracingPropertiesNVset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceRayTracingPropertiesNVset(VkPhysicalDeviceRayTracingPropertiesNV src)Copies the specified struct data to this struct.intshaderGroupBaseAlignment()the required alignment in bytes for the base of the shader binding table.intshaderGroupHandleSize()the size in bytes of the shader header.intsizeof()intsType()the type of this structure.VkPhysicalDeviceRayTracingPropertiesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceRayTracingPropertiesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NVvalue 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 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
shaderGroupHandleSize
public int shaderGroupHandleSize()
the size in bytes of the shader header.
-
maxRecursionDepth
public int maxRecursionDepth()
the maximum number of levels of recursion allowed in a trace command.
-
maxShaderGroupStride
public int maxShaderGroupStride()
the maximum stride in bytes allowed between shader groups in the shader binding table.
-
shaderGroupBaseAlignment
public int shaderGroupBaseAlignment()
the required alignment in bytes for the base of the shader binding table.
-
maxGeometryCount
public long maxGeometryCount()
the maximum number of geometries in the bottom level acceleration structure.
-
maxInstanceCount
public long maxInstanceCount()
the maximum number of instances in the top level acceleration structure.
-
maxTriangleCount
public long maxTriangleCount()
the maximum number of triangles in all geometries in the bottom level acceleration structure.
-
maxDescriptorSetAccelerationStructures
public int maxDescriptorSetAccelerationStructures()
the maximum number of acceleration structure descriptors that are allowed in a descriptor set.
-
sType
public VkPhysicalDeviceRayTracingPropertiesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceRayTracingPropertiesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NVvalue 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 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
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceRayTracingPropertiesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPropertiesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceRayTracingPropertiesNV calloc(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
-
malloc
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer malloc(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
-
calloc
public static VkPhysicalDeviceRayTracingPropertiesNV.Buffer calloc(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.
-
-