naga::front::spv::image

Function extract_image_coordinates

source
fn extract_image_coordinates(
    image_dim: ImageDimension,
    extra_coordinate: ExtraCoordinate,
    base: Handle<Expression>,
    coordinate_ty: Handle<Type>,
    ctx: &mut BlockContext<'_>,
) -> (Handle<Expression>, Option<Handle<Expression>>)
Expand description

Return the texture coordinates separated from the array layer, and/or divided by the projection term.

The Proj sampling ops expect an extra coordinate for the W. The arrayed (can’t be Proj!) images expect an extra coordinate for the layer.