Macro shadiertoy::pipeline [−][src]
macro_rules! pipeline { { $module:ident { $( $field:ident: $ty:ty, )* } } => { ... }; }
Define the format of the data you're passing to the shader.
There are three common types of data link:
RenderTarget
, for the color buffer.Global
, for global variables.TextureSampler
, for textures.
pipeline!(globals { time: Global<f32>, color: RenderTarget, resolution: Global<[f32; 2]>, });