Blender V4.3
blender::gpu::ShaderCompiler Class Referenceabstract

#include <gpu_shader_private.hh>

Inherited by blender::gpu::MTLShaderCompiler, blender::gpu::ShaderCompilerGeneric, and blender::gpu::VKShaderCompiler.

Classes

struct  Sources
 

Public Member Functions

virtual ~ShaderCompiler ()
 
virtual BatchHandle batch_compile (Span< const shader::ShaderCreateInfo * > &infos)=0
 
virtual bool batch_is_ready (BatchHandle handle)=0
 
virtual Vector< Shader * > batch_finalize (BatchHandle &handle)=0
 
virtual SpecializationBatchHandle precompile_specializations (Span< ShaderSpecialization >)
 
virtual bool specialization_batch_is_ready (SpecializationBatchHandle &handle)
 
ShaderCompiler
Shadercompile (const shader::ShaderCreateInfo &info, bool is_batch_compilation)
 

Detailed Description

Definition at line 167 of file gpu_shader_private.hh.

Constructor & Destructor Documentation

◆ ~ShaderCompiler()

virtual blender::gpu::ShaderCompiler::~ShaderCompiler ( )
inlinevirtual

Definition at line 177 of file gpu_shader_private.hh.

Member Function Documentation

◆ batch_compile()

virtual BatchHandle blender::gpu::ShaderCompiler::batch_compile ( Span< const shader::ShaderCreateInfo * > & infos)
pure virtual

◆ batch_finalize()

virtual Vector< Shader * > blender::gpu::ShaderCompiler::batch_finalize ( BatchHandle & handle)
pure virtual

◆ batch_is_ready()

virtual bool blender::gpu::ShaderCompiler::batch_is_ready ( BatchHandle handle)
pure virtual

◆ compile()

Shader * blender::gpu::ShaderCompiler::compile ( const shader::ShaderCreateInfo & info,
bool is_batch_compilation )

◆ precompile_specializations()

virtual SpecializationBatchHandle blender::gpu::ShaderCompiler::precompile_specializations ( Span< ShaderSpecialization > )
inlinevirtual

Reimplemented in blender::gpu::MTLShaderCompiler.

Definition at line 185 of file gpu_shader_private.hh.

Referenced by GPU_shader_batch_specializations().

◆ specialization_batch_is_ready()

virtual bool blender::gpu::ShaderCompiler::specialization_batch_is_ready ( SpecializationBatchHandle & handle)
inlinevirtual

Reimplemented in blender::gpu::MTLShaderCompiler.

Definition at line 192 of file gpu_shader_private.hh.

Referenced by GPU_shader_batch_specializations_is_ready().


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