The primitive count and primitive offset are interpreted differently depending on the VkGeometryTypeKHR used:
GEOMETRY_TYPE_TRIANGLES_KHR, primitiveCount is the number of triangles to be built, where each triangle is treated as 3 vertices.
primitiveCount × 3 indices are consumed from VkAccelerationStructureGeometryTrianglesDataKHR::indexData, starting at an offset of primitiveOffset. The value of firstVertex is added to the index values before fetching vertices.primitiveCount × 3 vertices are consumed from VkAccelerationStructureGeometryTrianglesDataKHR::vertexData, starting at an offset of primitiveOffset + VkAccelerationStructureGeometryTrianglesDataKHR::vertexStride × firstVertex.VkAccelerationStructureGeometryTrianglesDataKHR::transformData is not NULL, a single VkTransformMatrixKHR structure is consumed from VkAccelerationStructureGeometryTrianglesDataKHR::transformData, at an offset of transformOffset. This matrix describes a transformation from the space in which the vertices for all triangles in this geometry are described to the space in which the acceleration structure is defined.GEOMETRY_TYPE_AABBS_KHR, primitiveCount is the number of axis-aligned bounding boxes. primitiveCount VkAabbPositionsKHR structures are consumed from VkAccelerationStructureGeometryAabbsDataKHR::data, starting at an offset of primitiveOffset.GEOMETRY_TYPE_INSTANCES_KHR, primitiveCount is the number of acceleration structures. primitiveCount VkAccelerationStructureInstanceKHR or VkAccelerationStructureMotionInstanceNV structures are consumed from VkAccelerationStructureGeometryInstancesDataKHR::data, starting at an offset of primitiveOffset.GEOMETRY_TYPE_TRIANGLES_KHR, if the geometry uses indices, the offset primitiveOffset from VkAccelerationStructureGeometryTrianglesDataKHR::indexData must be a multiple of the element size of VkAccelerationStructureGeometryTrianglesDataKHR::indexTypeGEOMETRY_TYPE_TRIANGLES_KHR, if the geometry does not use indices, the offset primitiveOffset from VkAccelerationStructureGeometryTrianglesDataKHR::vertexData must be a multiple of the component size of VkAccelerationStructureGeometryTrianglesDataKHR::vertexFormatGEOMETRY_TYPE_TRIANGLES_KHR, the offset transformOffset from VkAccelerationStructureGeometryTrianglesDataKHR::transformData must be a multiple of 16GEOMETRY_TYPE_AABBS_KHR, the offset primitiveOffset from VkAccelerationStructureGeometryAabbsDataKHR::data must be a multiple of 8GEOMETRY_TYPE_INSTANCES_KHR, the offset primitiveOffset from VkAccelerationStructureGeometryInstancesDataKHR::data must be a multiple of 16BuildAccelerationStructuresKHR, CmdBuildAccelerationStructuresKHR
struct VkAccelerationStructureBuildRangeInfoKHR {
uint32_t primitiveCount;
uint32_t primitiveOffset;
uint32_t firstVertex;
uint32_t transformOffset;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FIRSTVERTEX
The struct member offsets. |
| public static final int | PRIMITIVECOUNT
The struct member offsets. |
| public static final int | PRIMITIVEOFFSET
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TRANSFORMOFFSET
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkAccelerationStructureBuildRangeInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR | |
| public static VkAccelerationStructureBuildRangeInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkAccelerationStructureBuildRangeInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAccelerationStructureBuildRangeInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkAccelerationStructureBuildRangeInfoKHR | 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 VkAccelerationStructureBuildRangeInfoKHR | |
| public static VkAccelerationStructureBuildRangeInfoKHR | create(long address)
Returns a new |
| public static VkAccelerationStructureBuildRangeInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkAccelerationStructureBuildRangeInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkAccelerationStructureBuildRangeInfoKHR | |
| public static VkAccelerationStructureBuildRangeInfoKHR. | |
| public int | |
| public VkAccelerationStructureBuildRangeInfoKHR | |
| public static VkAccelerationStructureBuildRangeInfoKHR | |
| public static VkAccelerationStructureBuildRangeInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkAccelerationStructureBuildRangeInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAccelerationStructureBuildRangeInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | primitiveCount()
defines the number of primitives for a corresponding acceleration structure geometry. |
| public VkAccelerationStructureBuildRangeInfoKHR | |
| public int | |
| public VkAccelerationStructureBuildRangeInfoKHR | |
| public VkAccelerationStructureBuildRangeInfoKHR | set(int primitiveCount, int primitiveOffset, int firstVertex, int transformOffset)
Initializes this struct with the specified values. |
| public VkAccelerationStructureBuildRangeInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkAccelerationStructureBuildRangeInfoKHR |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FIRSTVERTEX | back to summary |
|---|---|
| public static final int FIRSTVERTEX The struct member offsets. | |
| PRIMITIVECOUNT | back to summary |
|---|---|
| public static final int PRIMITIVECOUNT The struct member offsets. | |
| PRIMITIVEOFFSET | back to summary |
|---|---|
| public static final int PRIMITIVEOFFSET The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TRANSFORMOFFSET | back to summary |
|---|---|
| public static final int TRANSFORMOFFSET The struct member offsets. | |
| VkAccelerationStructureBuildRangeInfoKHR | back to summary |
|---|---|
| protected VkAccelerationStructureBuildRangeInfoKHR(long address, ByteBuffer container) | |
| VkAccelerationStructureBuildRangeInfoKHR | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkAccelerationStructureBuildRangeInfoKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Like
| |
| firstVertex | back to summary |
|---|---|
| public int firstVertex() the index of the first vertex to build from for triangle geometry.
| |
| firstVertex | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR firstVertex(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAccelerationStructureBuildRangeInfoKHR. Returns a new
| |
| nfirstVertex | back to summary |
|---|---|
| public static int nfirstVertex(long struct) Unsafe version of | |
| nfirstVertex | back to summary |
|---|---|
| public static void nfirstVertex(long struct, int value) Unsafe version of | |
| nprimitiveCount | back to summary |
|---|---|
| public static int nprimitiveCount(long struct) Unsafe version of | |
| nprimitiveCount | back to summary |
|---|---|
| public static void nprimitiveCount(long struct, int value) Unsafe version of | |
| nprimitiveOffset | back to summary |
|---|---|
| public static int nprimitiveOffset(long struct) Unsafe version of | |
| nprimitiveOffset | back to summary |
|---|---|
| public static void nprimitiveOffset(long struct, int value) Unsafe version of | |
| ntransformOffset | back to summary |
|---|---|
| public static int ntransformOffset(long struct) Unsafe version of | |
| ntransformOffset | back to summary |
|---|---|
| public static void ntransformOffset(long struct, int value) Unsafe version of | |
| primitiveCount | back to summary |
|---|---|
| public int primitiveCount() defines the number of primitives for a corresponding acceleration structure geometry.
| |
| primitiveCount | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR primitiveCount(int value) Sets the specified value to the | |
| primitiveOffset | back to summary |
|---|---|
| public int primitiveOffset() defines an offset in bytes into the memory where primitive data is defined.
| |
| primitiveOffset | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR primitiveOffset(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR set(int primitiveCount, int primitiveOffset, int firstVertex, int transformOffset) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR set(VkAccelerationStructureBuildRangeInfoKHR src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| transformOffset | back to summary |
|---|---|
| public int transformOffset() defines an offset in bytes into the memory where a transform matrix is defined.
| |
| transformOffset | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR transformOffset(int value) Sets the specified value to the | |
VkAccelerationStructureBuildRangeInfoKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkAccelerationStructureBuildRangeInfoKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkAccelerationStructureBuildRangeInfoKHR 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) | |
| firstVertex | back to summary |
|---|---|
public int firstVertex()
| |
| firstVertex | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkAccelerationStructureBuildRangeInfoKHR getElementFactory() Implements abstract org.
| |
| primitiveCount | back to summary |
|---|---|
public int primitiveCount()
| |
| primitiveCount | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR. Sets the specified value to the | |
| primitiveOffset | back to summary |
|---|---|
public int primitiveOffset()
| |
| primitiveOffset | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkAccelerationStructureBuildRangeInfoKHR. Implements abstract org.
| |
| transformOffset | back to summary |
|---|---|
public int transformOffset()
| |
| transformOffset | back to summary |
|---|---|
| public VkAccelerationStructureBuildRangeInfoKHR. Sets the specified value to the | |