Expand description
Shader preset definition parsing for librashader.
This crate contains facilities and types for parsing .slangp
shader presets files.
Shader presets contain shader and texture parameters, and the order in which to apply a set of
shaders in a filter chain. A librashader runtime takes a resulting ShaderPreset
as input to create a filter chain.
Re-exported as librashader::presets
.
Re-exports§
pub use context::WildcardContext;
Modules§
- context
- Shader preset wildcard replacement context handling.
Structs§
- Parameter
Meta - Configuration options for a shader parameter.
- Pass
Meta - Meta information about a shader pass.
- Path
Reference - A reference to a resource on disk.
- Scale2D
- 2D quad scaling parameters.
- Scaling
- Framebuffer scaling parameters.
- Shader
Features - Enable feature flags for shaders.
- Shader
Preset - A shader preset including all specified parameters, textures, and paths to specified shaders.
- Texture
Meta - Configuration options for a lookup texture used in the shader.
Enums§
- Parse
Error Kind - The kind of error that may occur in parsing.
- Parse
Preset Error - Error type for preset parsing.
- Scale
Factor - The scaling factor for framebuffer scaling.
- Scale
Type - The scaling type for the shader pass.
Type Aliases§
- Pass
Config - The configuration for a single shader pass.
- Texture
Config - Configuration options for a lookup texture used in the shader.