Skip to main content

ShaderValues

Trait ShaderValues 

Source
pub trait ShaderValues: Sealed + 'static { }
Expand description

The values one style’s or one post effect’s WGSL reads. Written by ShaderValues on a struct of f32, u32, Vec2, Vec3, Vec4, Mat4 and Color fields.

A style’s code reads them as style and an effect’s as effect. A type that reads no values has no fields, and binds none.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§