VkAccelerationStructureInfoNV contains information that is used both for acceleration structure creation with CreateAccelerationStructureNV and in combination with the actual geometric data to build the acceleration structure with CmdBuildAccelerationStructureNV.
geometryCount must be less than or equal to VkPhysicalDeviceRayTracingPropertiesNV::maxGeometryCountinstanceCount must be less than or equal to VkPhysicalDeviceRayTracingPropertiesNV::maxInstanceCountVkPhysicalDeviceRayTracingPropertiesNV::maxTriangleCounttype is ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL_NV then geometryCount must be 0type is ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL_NV then instanceCount must be 0type is ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL_NV then the geometryType member of each geometry in pGeometries must be the sametype must not be ACCELERATION_STRUCTURE_TYPE_GENERIC_KHRflags has the BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_TRACE_BIT_NV bit set, then it must not have the BUILD_ACCELERATION_STRUCTURE_PREFER_FAST_BUILD_BIT_NV bit setscratch must have been created with BUFFER_USAGE_RAY_TRACING_BIT_NV usage flaginstanceData is not NULL_HANDLE, instanceData must have been created with BUFFER_USAGE_RAY_TRACING_BIT_NV usage flagsType must be STRUCTURE_TYPE_ACCELERATION_STRUCTURE_INFO_NVpNext must be NULLtype must be a valid VkAccelerationStructureTypeKHR valueflags must be a valid combination of VkBuildAccelerationStructureFlagBitsNV valuesgeometryCount is not 0, pGeometries must be a valid pointer to an array of geometryCount valid VkGeometryNV structuresVkAccelerationStructureCreateInfoNV, VkGeometryNV, CmdBuildAccelerationStructureNV
struct VkAccelerationStructureInfoNV {
VkStructureType sType;
void const * pNext;
VkAccelerationStructureTypeKHR type;
VkBuildAccelerationStructureFlagsNV flags;
uint32_t instanceCount;
uint32_t geometryCount;
VkGeometryNV const * pGeometries;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkAccelerationStructureInfoNV.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | GEOMETRYCOUNT
The struct member offsets. |
| public static final int | INSTANCECOUNT
The struct member offsets. |
| public static final int | PGEOMETRIES
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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkAccelerationStructureInfoNV(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkAccelerationStructureInfoNV | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAccelerationStructureInfoNV. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV. | |
| public static VkAccelerationStructureInfoNV. | |
| protected VkAccelerationStructureInfoNV | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV | create(long address)
Returns a new |
| public static VkAccelerationStructureInfoNV. | create(int
the buffer capacity capacity)Returns a new |
| public static VkAccelerationStructureInfoNV. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV. | |
| public int | flags()
a bitmask of |
| public VkAccelerationStructureInfoNV | |
| public int | |
| public int | |
| public VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkAccelerationStructureInfoNV | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAccelerationStructureInfoNV. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV | |
| public static VkAccelerationStructureInfoNV. | |
| public static VkAccelerationStructureInfoNV. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | ngeometryCount(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public static VkGeometryNV. | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public VkGeometryNV. | pGeometries()
a pointer to an array of |
| public VkAccelerationStructureInfoNV | pGeometries(VkGeometryNV.
Sets the address of the specified |
| public long | |
| public VkAccelerationStructureInfoNV | |
| public VkAccelerationStructureInfoNV | set(int sType, long pNext, int type, int flags, int instanceCount, VkGeometryNV.
Initializes this struct with the specified values. |
| public VkAccelerationStructureInfoNV | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkAccelerationStructureInfoNV | |
| public VkAccelerationStructureInfoNV | |
| public int | type()
a |
| public VkAccelerationStructureInfoNV | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| GEOMETRYCOUNT | back to summary |
|---|---|
| public static final int GEOMETRYCOUNT The struct member offsets. | |
| INSTANCECOUNT | back to summary |
|---|---|
| public static final int INSTANCECOUNT The struct member offsets. | |
| PGEOMETRIES | back to summary |
|---|---|
| public static final int PGEOMETRIES The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VkAccelerationStructureInfoNV | back to summary |
|---|---|
| protected VkAccelerationStructureInfoNV(long address, ByteBuffer container) | |
| VkAccelerationStructureInfoNV | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkAccelerationStructureInfoNV create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Like
| |
| flags | back to summary |
|---|---|
| public int flags() a bitmask of
| |
| flags | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV flags(int value) Sets the specified value to the | |
| geometryCount | back to summary |
|---|---|
| public int geometryCount() specifies the number of geometries that will be in the new acceleration structure.
| |
| instanceCount | back to summary |
|---|---|
| public int instanceCount() specifies the number of instances that will be in the new acceleration structure.
| |
| instanceCount | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV instanceCount(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkAccelerationStructureInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| ngeometryCount | back to summary |
|---|---|
| public static int ngeometryCount(long struct) Unsafe version of | |
| ngeometryCount | back to summary |
|---|---|
| public static void ngeometryCount(long struct, int value) Sets the specified value to the | |
| ninstanceCount | back to summary |
|---|---|
| public static int ninstanceCount(long struct) Unsafe version of | |
| ninstanceCount | back to summary |
|---|---|
| public static void ninstanceCount(long struct, int value) Unsafe version of | |
| npGeometries | back to summary |
|---|---|
| public static VkGeometryNV. Unsafe version of
| |
| npGeometries | back to summary |
|---|---|
| public static void npGeometries(long struct, VkGeometryNV. Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| pGeometries | back to summary |
|---|---|
| public VkGeometryNV. a pointer to an array of
| |
| pGeometries | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV pGeometries(VkGeometryNV. Sets the address of the specified | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV set(int sType, long pNext, int type, int flags, int instanceCount, VkGeometryNV. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV set(VkAccelerationStructureInfoNV src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV sType$Default() Sets the | |
| type | back to summary |
|---|---|
| public int type() a
| |
| type | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV type(int value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkAccelerationStructureInfoNV structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkAccelerationStructureInfoNV |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkAccelerationStructureInfoNV ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the specified value to the | |
| geometryCount | back to summary |
|---|---|
public int geometryCount()
| |
| getElementFactory | back to summary |
|---|---|
| protected VkAccelerationStructureInfoNV getElementFactory() Implements abstract org.
| |
| instanceCount | back to summary |
|---|---|
public int instanceCount()
| |
| instanceCount | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the specified value to the | |
| pGeometries | back to summary |
|---|---|
public VkGeometryNV.
| |
| pGeometries | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the address of the specified | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkAccelerationStructureInfoNV. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public VkAccelerationStructureInfoNV. Sets the specified value to the | |