This class provides common code to use shader option. More...
#include <PostProcessingShaderOptionBase.h>
Inherited by AZ::Render::DepthOfFieldBokehBlurPass, AZ::Render::DepthOfFieldCompositePass, AZ::Render::LookModificationCompositePass, and AZ::Render::OutputTransformPass.
Protected Member Functions | |
void | PreloadShaderVariant (const Data::Instance< AZ::RPI::Shader > &shader, const RPI::ShaderOptionGroup &shaderOption, const RHI::RenderAttachmentConfiguration &renderAttachmentConfiguration, const RHI::MultisampleState &multisampleState) |
Creates the PSO for ShaderOption and save it as a cache. | |
void | UpdateShaderVariant (const AZ::RPI::ShaderOptionGroup &shaderOption) |
Update shaderVariant. Used when the shader is switched. | |
void | CompileShaderVariant (Data::Instance< AZ::RPI::ShaderResourceGroup > &shaderResourceGroup) |
Set a key in the SRG for dynamic branching for shaders not created in advance. | |
const AZ::RHI::PipelineState * | GetPipelineStateFromShaderVariant () const |
Get precomputed pipeline. | |
This class provides common code to use shader option.