wisdom
|
Geometry description for bottom-level acceleration structure. Mayy contain AABBs or Triangles.
#include <api.hpp>
Public Attributes | |
wis::ASGeometryType | geometry_type |
Type of the geometry (Triangles/AABB). | |
wis::ASGeometryFlags | flags |
Geometry flags. | |
uint64_t | vertex_or_aabb_buffer_address |
Buffer address of the buffer containing vertex data or AABB data (float [6]) depending on the geometry type. | |
uint64_t | vertex_or_aabb_buffer_stride |
Stride of the vertex buffer in bytes or stride of the AABB buffer in bytes. | |
uint64_t | index_buffer_address |
Buffer address of the buffer containing index data. Unused for wis::ASGeometryType::AABBs. | |
uint64_t | transform_matrix_address |
GPU Buffer address of the containing transform matrix (float [3][4]). Unused for wis::ASGeometryType::AABBs. | |
uint32_t | vertex_count |
Vertex count. Unused for wis::ASGeometryType::AABBs. | |
uint32_t | triangle_or_aabb_count |
For triangles it is equal to (index_count/3) and count for AABBs. | |
wis::DataFormat | vertex_format |
Format of the vertices. Unused for wis::ASGeometryType::AABBs. | |
wis::IndexType | index_format |
Format of the indices. Unused for wis::ASGeometryType::AABBs. | |
wis::ASGeometryFlags wis::AcceleratedGeometryInput::flags |
wis::ASGeometryType wis::AcceleratedGeometryInput::geometry_type |
uint64_t wis::AcceleratedGeometryInput::index_buffer_address |
Buffer address of the buffer containing index data. Unused for wis::ASGeometryType::AABBs.
wis::IndexType wis::AcceleratedGeometryInput::index_format |
Format of the indices. Unused for wis::ASGeometryType::AABBs.
uint64_t wis::AcceleratedGeometryInput::transform_matrix_address |
GPU Buffer address of the containing transform matrix (float [3][4]). Unused for wis::ASGeometryType::AABBs.
uint32_t wis::AcceleratedGeometryInput::triangle_or_aabb_count |
uint32_t wis::AcceleratedGeometryInput::vertex_count |
Vertex count. Unused for wis::ASGeometryType::AABBs.
wis::DataFormat wis::AcceleratedGeometryInput::vertex_format |
Format of the vertices. Unused for wis::ASGeometryType::AABBs.
uint64_t wis::AcceleratedGeometryInput::vertex_or_aabb_buffer_address |
uint64_t wis::AcceleratedGeometryInput::vertex_or_aabb_buffer_stride |