Blender V4.3
blender::gpu::MTLParallelShaderCompiler Class Reference

#include <mtl_shader.hh>

Public Member Functions

void increment_ref_count ()
void decrement_ref_count ()
int get_ref_count ()

MTLParallelShaderCompiler

 MTLParallelShaderCompiler ()
 ~MTLParallelShaderCompiler ()
void create_compile_threads ()
BatchHandle batch_compile (MTLShaderCompiler *shade_compiler, Span< const shader::ShaderCreateInfo * > &infos)
bool batch_is_ready (BatchHandle handle)
Vector< Shader * > batch_finalize (BatchHandle &handle)
SpecializationBatchHandle precompile_specializations (Span< ShaderSpecialization > specializations)
bool specialization_batch_is_ready (SpecializationBatchHandle &handle)

Detailed Description

Definition at line 411 of file mtl_shader.hh.

Constructor & Destructor Documentation

◆ MTLParallelShaderCompiler()

blender::gpu::MTLParallelShaderCompiler::MTLParallelShaderCompiler ( )

Definition at line 1866 of file mtl_shader.mm.

References BLI_assert, and GPU_use_parallel_compilation().

◆ ~MTLParallelShaderCompiler()

blender::gpu::MTLParallelShaderCompiler::~MTLParallelShaderCompiler ( )

Definition at line 1873 of file mtl_shader.mm.

References batch_finalize(), BLI_assert, thread::join(), and lock.

Member Function Documentation

◆ batch_compile()

BatchHandle blender::gpu::MTLParallelShaderCompiler::batch_compile ( MTLShaderCompiler * shade_compiler,
Span< const shader::ShaderCreateInfo * > & infos )

◆ batch_finalize()

Vector< Shader * > blender::gpu::MTLParallelShaderCompiler::batch_finalize ( BatchHandle & handle)

Definition at line 2123 of file mtl_shader.mm.

References batch, batch_is_ready(), BLI_time_sleep_ms(), lock, and result.

Referenced by ~MTLParallelShaderCompiler().

◆ batch_is_ready()

bool blender::gpu::MTLParallelShaderCompiler::batch_is_ready ( BatchHandle handle)

Definition at line 2101 of file mtl_shader.mm.

References batch, lock, and shader_debug_printf.

Referenced by batch_finalize().

◆ create_compile_threads()

◆ decrement_ref_count()

void blender::gpu::MTLParallelShaderCompiler::decrement_ref_count ( )
inline

Definition at line 470 of file mtl_shader.hh.

References BLI_assert.

◆ get_ref_count()

int blender::gpu::MTLParallelShaderCompiler::get_ref_count ( )
inline

Definition at line 475 of file mtl_shader.hh.

◆ increment_ref_count()

void blender::gpu::MTLParallelShaderCompiler::increment_ref_count ( )
inline

Definition at line 466 of file mtl_shader.hh.

◆ precompile_specializations()

◆ specialization_batch_is_ready()

bool blender::gpu::MTLParallelShaderCompiler::specialization_batch_is_ready ( SpecializationBatchHandle & handle)

Definition at line 2186 of file mtl_shader.mm.

References batch, lock, and shader_debug_printf.


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