Blender V5.0
blender::workbench::ShaderCache Class Reference

#include <workbench_private.hh>

Public Member Functions

 ShaderCache ()
gpu::Shaderprepass_get (eGeometryType geometry_type, ePipelineType pipeline_type, eLightingType lighting_type, eShaderType shader_type, bool clip)
gpu::Shaderresolve_get (eLightingType lighting_type, bool cavity=false, bool curvature=false, bool shadow=false)
gpu::Shadershadow_get (bool depth_pass, bool manifold, bool cap=false)
gpu::Shadervolume_get (bool smoke, int interpolation, bool coba, bool slice)

Static Public Member Functions

static ShaderCacheget ()
static void release ()

Public Attributes

StaticShader transparent_resolve = {"workbench_transparent_resolve"}
StaticShader merge_depth = {"workbench_merge_depth"}
StaticShader shadow_visibility_dynamic
StaticShader shadow_visibility_static = {"workbench_shadow_visibility_compute_static_pass_type"}
StaticShader outline = {"workbench_effect_outline"}
StaticShader dof_prepare = {"workbench_effect_dof_prepare"}
StaticShader dof_downsample = {"workbench_effect_dof_downsample"}
StaticShader dof_blur1 = {"workbench_effect_dof_blur1"}
StaticShader dof_blur2 = {"workbench_effect_dof_blur2"}
StaticShader dof_resolve = {"workbench_effect_dof_resolve"}
StaticShader taa_accumulation = {"workbench_taa"}
StaticShader smaa_edge_detect = {"workbench_smaa_stage_0"}
StaticShader smaa_aa_weight = {"workbench_smaa_stage_1"}
StaticShader smaa_resolve = {"workbench_smaa_stage_2"}
StaticShader overlay_depth = {"workbench_overlay_depth"}

Detailed Description

Definition at line 25 of file workbench_private.hh.

Constructor & Destructor Documentation

◆ ShaderCache()

Member Function Documentation

◆ get()

◆ prepass_get()

gpu::Shader * blender::workbench::ShaderCache::prepass_get ( eGeometryType geometry_type,
ePipelineType pipeline_type,
eLightingType lighting_type,
eShaderType shader_type,
bool clip )
inline

Definition at line 53 of file workbench_private.hh.

◆ release()

void blender::workbench::ShaderCache::release ( )
inlinestatic

Definition at line 46 of file workbench_private.hh.

◆ resolve_get()

gpu::Shader * blender::workbench::ShaderCache::resolve_get ( eLightingType lighting_type,
bool cavity = false,
bool curvature = false,
bool shadow = false )
inline

Definition at line 64 of file workbench_private.hh.

◆ shadow_get()

gpu::Shader * blender::workbench::ShaderCache::shadow_get ( bool depth_pass,
bool manifold,
bool cap = false )
inline

Definition at line 72 of file workbench_private.hh.

◆ volume_get()

gpu::Shader * blender::workbench::ShaderCache::volume_get ( bool smoke,
int interpolation,
bool coba,
bool slice )
inline

Definition at line 77 of file workbench_private.hh.

Member Data Documentation

◆ dof_blur1

StaticShader blender::workbench::ShaderCache::dof_blur1 = {"workbench_effect_dof_blur1"}

Definition at line 97 of file workbench_private.hh.

◆ dof_blur2

StaticShader blender::workbench::ShaderCache::dof_blur2 = {"workbench_effect_dof_blur2"}

Definition at line 98 of file workbench_private.hh.

◆ dof_downsample

StaticShader blender::workbench::ShaderCache::dof_downsample = {"workbench_effect_dof_downsample"}

Definition at line 96 of file workbench_private.hh.

◆ dof_prepare

StaticShader blender::workbench::ShaderCache::dof_prepare = {"workbench_effect_dof_prepare"}

Definition at line 95 of file workbench_private.hh.

◆ dof_resolve

StaticShader blender::workbench::ShaderCache::dof_resolve = {"workbench_effect_dof_resolve"}

Definition at line 99 of file workbench_private.hh.

◆ merge_depth

StaticShader blender::workbench::ShaderCache::merge_depth = {"workbench_merge_depth"}

Definition at line 84 of file workbench_private.hh.

◆ outline

StaticShader blender::workbench::ShaderCache::outline = {"workbench_effect_outline"}

Definition at line 92 of file workbench_private.hh.

◆ overlay_depth

StaticShader blender::workbench::ShaderCache::overlay_depth = {"workbench_overlay_depth"}

Definition at line 106 of file workbench_private.hh.

◆ shadow_visibility_dynamic

StaticShader blender::workbench::ShaderCache::shadow_visibility_dynamic
Initial value:
= {
"workbench_shadow_visibility_compute_dynamic_pass_type"}

Definition at line 87 of file workbench_private.hh.

◆ shadow_visibility_static

StaticShader blender::workbench::ShaderCache::shadow_visibility_static = {"workbench_shadow_visibility_compute_static_pass_type"}

Definition at line 89 of file workbench_private.hh.

◆ smaa_aa_weight

StaticShader blender::workbench::ShaderCache::smaa_aa_weight = {"workbench_smaa_stage_1"}

Definition at line 104 of file workbench_private.hh.

◆ smaa_edge_detect

StaticShader blender::workbench::ShaderCache::smaa_edge_detect = {"workbench_smaa_stage_0"}

Definition at line 103 of file workbench_private.hh.

◆ smaa_resolve

StaticShader blender::workbench::ShaderCache::smaa_resolve = {"workbench_smaa_stage_2"}

Definition at line 105 of file workbench_private.hh.

◆ taa_accumulation

StaticShader blender::workbench::ShaderCache::taa_accumulation = {"workbench_taa"}

Definition at line 102 of file workbench_private.hh.

◆ transparent_resolve

StaticShader blender::workbench::ShaderCache::transparent_resolve = {"workbench_transparent_resolve"}

Definition at line 83 of file workbench_private.hh.


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