naga::front::glsl::builtins

Function sampled_to_depth

source
pub fn sampled_to_depth(
    ctx: &mut Context<'_>,
    image: Handle<Expression>,
    meta: Span,
    errors: &mut Vec<Error>,
)
Expand description

Helper function to cast a expression holding a sampled image to a depth image.