|
Blender V5.0
|
#include <mtl_shader.hh>
Inherits blender::gpu::ShaderCompiler.
Public Member Functions | |
MTLShaderCompiler | |
| MTLShaderCompiler () | |
| Shader * | compile_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 () |
| Shader * | compile (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 () |
Definition at line 329 of file mtl_shader.hh.
| blender::gpu::MTLShaderCompiler::MTLShaderCompiler | ( | ) |
Definition at line 1579 of file mtl_shader.mm.
References GPU_max_parallel_compilations(), blender::gpu::ShaderCompiler::ShaderCompiler(), and true.
|
overridevirtual |
Reimplemented from blender::gpu::ShaderCompiler.
Definition at line 1584 of file mtl_shader.mm.
References blender::gpu::ShaderCompiler::compile().
|
overridevirtual |
Reimplemented from blender::gpu::ShaderCompiler.
Definition at line 1597 of file mtl_shader.mm.
References BLI_assert_msg, ShaderSpecialization::constants, blender::gpu::Context::get(), ShaderSpecialization::shader, and blender::gpu::shader::SpecializationConstants::values.