Function viewDimension

Convert the given texture dimension into a texture view dimension.

TextureViewDimension viewDimension (
  const(TextureDimension) dimension,
  uint depthOrArrayLayers = 1u
);