Crate librashader_presets

Source
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§

ParameterMeta
Configuration options for a shader parameter.
PassMeta
Meta information about a shader pass.
PathReference
A reference to a resource on disk.
Scale2D
2D quad scaling parameters.
Scaling
Framebuffer scaling parameters.
ShaderFeatures
Enable feature flags for shaders.
ShaderPreset
A shader preset including all specified parameters, textures, and paths to specified shaders.
TextureMeta
Configuration options for a lookup texture used in the shader.

Enums§

ParseErrorKind
The kind of error that may occur in parsing.
ParsePresetError
Error type for preset parsing.
ScaleFactor
The scaling factor for framebuffer scaling.
ScaleType
The scaling type for the shader pass.

Type Aliases§

PassConfig
The configuration for a single shader pass.
TextureConfig
Configuration options for a lookup texture used in the shader.