Blender V4.5
blender::gpu::MTLQueryPool Class Reference

#include <mtl_query.hh>

Inherits blender::gpu::QueryPool.

Public Member Functions

 MTLQueryPool ()
 ~MTLQueryPool () override
void init (GPUQueryType type) override
void begin_query () override
void end_query () override
void get_occlusion_result (MutableSpan< uint32_t > r_values) override
Public Member Functions inherited from blender::gpu::QueryPool
virtual ~QueryPool ()=default

Detailed Description

Definition at line 18 of file mtl_query.hh.

Constructor & Destructor Documentation

◆ MTLQueryPool()

blender::gpu::MTLQueryPool::MTLQueryPool ( )

Definition at line 19 of file mtl_query.mm.

Referenced by blender::gpu::MTLBackend::querypool_alloc().

◆ ~MTLQueryPool()

blender::gpu::MTLQueryPool::~MTLQueryPool ( )
override

Definition at line 23 of file mtl_query.mm.

References BLI_assert.

Member Function Documentation

◆ begin_query()

◆ end_query()

void blender::gpu::MTLQueryPool::end_query ( )
overridevirtual

◆ get_occlusion_result()

void blender::gpu::MTLQueryPool::get_occlusion_result ( MutableSpan< uint32_t > r_values)
overridevirtual

◆ init()

void blender::gpu::MTLQueryPool::init ( GPUQueryType type)
overridevirtual

Will start and end the query at this index inside the pool. The pool will resize automatically but does not support sparse allocation. So prefer using consecutive indices.

Implements blender::gpu::QueryPool.

Definition at line 55 of file mtl_query.mm.

References BLI_assert, and blender::gpu::to_mtl_type().


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