Skip to main content

validate_copy_tex_image_formats

Function validate_copy_tex_image_formats 

Source
fn validate_copy_tex_image_formats(
    source: TexFormat,
    destination: TexFormat,
) -> WebGLResult<Option<TexDataType>>
Expand description

Checks that copyTexImage2D may fill a texture of destination format from a color buffer of source format (OpenGL ES 3.0.6 section 3.8.5); InvalidOperation otherwise. Returns the type whose table 3.12 row is the new image’s effective format, None for a sized destination.