#include <RayTracingAccelerationStructure.h>
Public Member Functions | |
const RayTracingGeometryVector & | GetGeometries () const |
RayTracingGeometryVector & | GetGeometries () |
RayTracingBlasDescriptor * | Build () |
RayTracingBlasDescriptor * | Geometry () |
RayTracingBlasDescriptor * | VertexBuffer (const RHI::StreamBufferView &vertexBuffer) |
RayTracingBlasDescriptor * | VertexFormat (RHI::Format vertexFormat) |
RayTracingBlasDescriptor * | IndexBuffer (const RHI::IndexBufferView &indexBuffer) |
The Build() operation in the descriptor allows the BLAS to be initialized using the following pattern:
RHI::RayTracingBlasDescriptor descriptor; descriptor.Build() ->Geometry() ->VertexFormat(RHI::Format::R32G32B32_FLOAT) ->VertexBuffer(vertexBufferView) ->IndexBuffer(indexBufferView) ;