Blender V5.3
blender::gpu::MTLTopLevelAS Class Reference

#include <mtl_ray_tracing.hh>

Inherits blender::gpu::TopLevelAS.

Public Member Functions

id< MTLAccelerationStructure > acceleration_structure () const
template<typename Encoder>
void make_resident (Encoder &enc)
Top level acceleration structure
 MTLTopLevelAS (const char *name)
 ~MTLTopLevelAS () override
InstanceID add_instance (const BottomLevelAS &blas, const float4x4 &mat, uint8_t mask) override
void update_instance (InstanceID instance_id, const float4x4 &mat, uint8_t mask) override
void build () override
void bind (int slot) override
Public Member Functions inherited from blender::gpu::TopLevelAS
virtual ~TopLevelAS ()=default

Additional Inherited Members

Protected Member Functions inherited from blender::gpu::TopLevelAS
 TopLevelAS (const char *name)
const char * name_get () const

Detailed Description

Top level acceleration structure (instances).

Definition at line 43 of file mtl_ray_tracing.hh.

Constructor & Destructor Documentation

◆ MTLTopLevelAS()

blender::gpu::MTLTopLevelAS::MTLTopLevelAS ( const char * name)

◆ ~MTLTopLevelAS()

Member Function Documentation

◆ acceleration_structure()

id< MTLAccelerationStructure > blender::gpu::MTLTopLevelAS::acceleration_structure ( ) const
inline

Definition at line 65 of file mtl_ray_tracing.hh.

Referenced by blender::gpu::ensure_buffer_bindings().

◆ add_instance()

InstanceID blender::gpu::MTLTopLevelAS::add_instance ( const BottomLevelAS & blas,
const float4x4 & mat,
uint8_t mask )
overridevirtual

Implements blender::gpu::TopLevelAS.

Definition at line 156 of file mtl_ray_tracing.mm.

◆ bind()

◆ build()

◆ make_resident()

template<typename Encoder>
void blender::gpu::MTLTopLevelAS::make_resident ( Encoder & enc)
inline

Definition at line 71 of file mtl_ray_tracing.hh.

Referenced by blender::gpu::ensure_buffer_bindings().

◆ update_instance()

void blender::gpu::MTLTopLevelAS::update_instance ( InstanceID instance_id,
const float4x4 & mat,
uint8_t mask )
overridevirtual

Implements blender::gpu::TopLevelAS.

Definition at line 167 of file mtl_ray_tracing.mm.

References instance_id.


The documentation for this class was generated from the following files: