Blender V5.0
blender::gpu::MTLShaderCompiler Class Reference

#include <mtl_shader.hh>

Inherits blender::gpu::ShaderCompiler.

Public Member Functions

MTLShaderCompiler
 MTLShaderCompiler ()
Shadercompile_shader (const shader::ShaderCreateInfo &info) override
void specialize_shader (ShaderSpecialization &specialization) override
 ShaderCompiler (uint32_t threads_count=1, GPUWorker::ContextType context_type=GPUWorker::ContextType::PerThread, bool support_specializations=false)
virtual ~ShaderCompiler ()
Shadercompile (const shader::ShaderCreateInfo &info, bool is_batch_compilation)
BatchHandle batch_compile (Span< const shader::ShaderCreateInfo * > &infos, CompilationPriority priority)
void batch_cancel (BatchHandle &handle)
bool batch_is_ready (BatchHandle handle)
Vector< Shader * > batch_finalize (BatchHandle &handle)
SpecializationBatchHandle precompile_specializations (Span< ShaderSpecialization > specializations, CompilationPriority priority)
bool specialization_batch_is_ready (SpecializationBatchHandle &handle)
bool is_compiling ()
void wait_for_all ()

Additional Inherited Members

Protected Member Functions inherited from blender::gpu::ShaderCompiler
void destruct_compilation_worker ()

Detailed Description

Definition at line 329 of file mtl_shader.hh.

Constructor & Destructor Documentation

◆ MTLShaderCompiler()

blender::gpu::MTLShaderCompiler::MTLShaderCompiler ( )

Member Function Documentation

◆ compile_shader()

Shader * blender::gpu::MTLShaderCompiler::compile_shader ( const shader::ShaderCreateInfo & info)
overridevirtual

Reimplemented from blender::gpu::ShaderCompiler.

Definition at line 1584 of file mtl_shader.mm.

References blender::gpu::ShaderCompiler::compile().

◆ specialize_shader()

void blender::gpu::MTLShaderCompiler::specialize_shader ( ShaderSpecialization & specialization)
overridevirtual

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