naga::front::glsl::builtins

Function image_dims_to_coords_size

source
const fn image_dims_to_coords_size(dim: ImageDimension) -> usize
Expand description

Helper functions used to convert from a image dimension into a integer representing the number of components needed for the coordinates vector (1 means scalar instead of vector)