Skip to main content

bound_texture

Function bound_texture 

Source
pub(crate) fn bound_texture(
    context: &WebGLRenderingContext,
    target: TexImageTarget,
) -> Result<DomRoot<WebGLTexture>, TexImageValidationError>
Expand description

Returns the texture bound to target. Generates INVALID_OPERATION if none is bound.