Blender V5.3
blender::gpu::TopLevelAS Class Referenceabstract

#include <GPU_ray_tracing.hh>

Inherited by blender::gpu::MTLTopLevelAS, and blender::gpu::VKTopLevelAS.

Public Member Functions

virtual ~TopLevelAS ()=default
virtual InstanceID add_instance (const BottomLevelAS &blas, const float4x4 &mat, uint8_t mask=0xFF)=0
virtual void update_instance (InstanceID instance_id, const float4x4 &mat, uint8_t mask=0xFF)=0
virtual void build ()=0
virtual void bind (int slot)=0

Protected Member Functions

 TopLevelAS (const char *name)
const char * name_get () const

Detailed Description

Acceleration structure for an array of instances.

Definition at line 28 of file GPU_ray_tracing.hh.

Constructor & Destructor Documentation

◆ TopLevelAS()

blender::gpu::TopLevelAS::TopLevelAS ( const char * name)
inlineprotected

◆ ~TopLevelAS()

virtual blender::gpu::TopLevelAS::~TopLevelAS ( )
virtualdefault

Member Function Documentation

◆ add_instance()

virtual InstanceID blender::gpu::TopLevelAS::add_instance ( const BottomLevelAS & blas,
const float4x4 & mat,
uint8_t mask = 0xFF )
pure virtual

◆ bind()

virtual void blender::gpu::TopLevelAS::bind ( int slot)
pure virtual

◆ build()

virtual void blender::gpu::TopLevelAS::build ( )
pure virtual

◆ name_get()

const char * blender::gpu::TopLevelAS::name_get ( ) const
inlineprotected

Definition at line 35 of file GPU_ray_tracing.hh.

Referenced by blender::gpu::VKTopLevelAS::build().

◆ update_instance()

virtual void blender::gpu::TopLevelAS::update_instance ( InstanceID instance_id,
const float4x4 & mat,
uint8_t mask = 0xFF )
pure virtual

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