Function pixels::check_texture_size
source · 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::TextureWidth
whenwidth
is 0 or greater than GPU texture limits.TextureError::TextureHeight
whenheight
is 0 or greater than GPU texture limits.