[][src]Struct ugli_webgl::EXT_texture_compression_rgtc

pub struct EXT_texture_compression_rgtc(_);

Extension

This extension exposes the compressed texture format defined in the EXT_texture_compression_rgtc OpenGL extension to WebGL. Consult that extension specification for behavioral definitions, including error behaviors.

Updates of partial tiles detailed in the "Implementation Note" section of the EXT_texture_compression_rgtc specification must be supported in an implementation of this WebGL extension. Compression formats COMPRESSED_RED_RGTC1_EXT, COMPRESSED_SIGNED_RED_RGTC1_EXT, COMPRESSED_RED_GREEN_RGTC2_EXT, and COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT may be passed to the compressedTexImage2D and compressedTexSubImage2D entry points. Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the formats from this specification.

The following format-specific restrictions must be enforced: COMPRESSED_RED_RGTC1_EXT COMPRESSED_SIGNED_RED_RGTC1_EXT

The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:

ceil(width / 4) * ceil(height / 4) * 8

If it is not, an INVALID_VALUE error is generated. COMPRESSED_RED_GREEN_RGTC2_EXT COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT

The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D or compressedTexSubImage2D must be equal to the following number of bytes:

ceil(width / 4) * ceil(height / 4) * 16

If it is not, an INVALID_VALUE error is generated.

Methods

impl EXT_texture_compression_rgtc[src]

Trait Implementations

impl AsRef<Reference> for EXT_texture_compression_rgtc[src]

impl Clone for EXT_texture_compression_rgtc[src]

impl Debug for EXT_texture_compression_rgtc[src]

impl Extension for EXT_texture_compression_rgtc[src]

impl From<EXT_texture_compression_rgtc> for Reference[src]

impl InstanceOf for EXT_texture_compression_rgtc[src]

impl JsSerialize for EXT_texture_compression_rgtc[src]

impl JsSerializeOwned for EXT_texture_compression_rgtc[src]

impl<'_r> JsSerializeOwned for &'_r EXT_texture_compression_rgtc[src]

impl ReferenceType for EXT_texture_compression_rgtc[src]

impl<'_r> TryFrom<&'_r Reference> for EXT_texture_compression_rgtc[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for EXT_texture_compression_rgtc[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<EXT_texture_compression_rgtc> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for EXT_texture_compression_rgtc[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for EXT_texture_compression_rgtc[src]

type Error = ConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.