Module librashader::presets
source · Available on crate feature
presets
only.Expand description
Parsing and usage of shader presets.
This module 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.
librashader’s preset parser has been tested against all presets in the slang-shaders repository
to generally good compatibility. However, the preset parser requires all referenced paths to resolve to a canonical, existing path relative
to the preset file. The handful of shaders that fail to parse due to this or other reasons are
listed at BROKEN_SHADERS.md
.
Modules§
- Shader preset wildcard replacement context handling.
Structs§
- Configuration options for a shader parameter.
- 2D quad scaling parameters.
- Framebuffer scaling parameters.
- The configuration for a single shader pass.
- A shader preset including all specified parameters, textures, and paths to specified shaders.
- Configuration options for a lookup texture used in the shader.
- A preset wildcard context.
Enums§
- The kind of error that may occur in parsing.
- Error type for preset parsing.
- The scaling factor for framebuffer scaling.
- The scaling type for the shader pass.
Functions§
- Get full parameter metadata from a shader preset.