pub fn check_texture_size(
device: &Device,
width: u32,
height: u32,
) -> Result<(), TextureError>Expand description
Compare the given size to the limits defined by device.
ยงErrors
TextureError::TextureWidthwhenwidthis 0 or greater than GPU texture limits.TextureError::TextureHeightwhenheightis 0 or greater than GPU texture limits.