Skip to main content

evaluate_raw

Function evaluate_raw 

Source
pub fn evaluate_raw(
    shader: &dyn PixelShader,
    constants: &Constants,
    textures: &Views,
    inputs: &BTreeMap<(String, u32), Input>,
    grid: Grid,
    targets: &[(u32, u8)],
    invocation: Invocation,
) -> Result<Raw, Error>
Expand description

Evaluate shader over the grid as invocation says, keeping each requested output’s bits and written lanes per pixel (Raw). textures are the views by bind slot (t<n>); where they refuse what they do not hold (Absent::Refuse), a slot the program samples without one is an error. inputs are by (semantic, index), compared case-insensitively; a used input without one is an error. targets are (output register, component mask).