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

#include <mtl_shader.hh>

Inherits blender::gpu::ShaderCompiler.

Public Member Functions

MTLShaderCompiler
 MTLShaderCompiler ()
Shader * compile_shader (const shader::ShaderCreateInfo &info) override
void specialize_shader (const ShaderSpecialization &specialization) override
 ShaderCompiler (uint32_t threads_count=1, GPUWorker::ContextType context_type=GPUWorker::ContextType::PerThread, bool support_specializations=false)
virtual ~ShaderCompiler ()
Shader * compile (const shader::ShaderCreateInfo &info, bool is_codegen_only)
AsyncCompilationHandle async_compilation (const shader::ShaderCreateInfo *info, CompilationPriority priority)
void async_compilation_cancel (AsyncCompilationHandle &handle)
bool async_compilation_is_ready (AsyncCompilationHandle handle)
Shader * async_compilation_finalize (AsyncCompilationHandle &handle)
AsyncSpecializationHandle async_specialization (const ShaderSpecialization &specialization, CompilationPriority priority)
bool async_specialization_is_ready (AsyncSpecializationHandle &handle)
bool is_compiling ()
void wait_for_all ()
void pause_all ()
void continue_all ()

Additional Inherited Members

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

Detailed Description

Definition at line 272 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 1150 of file mtl_shader.mm.

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

◆ specialize_shader()

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

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