[][src]Struct ugli_webgl::EXT_texture_compression_bptc

pub struct EXT_texture_compression_bptc(_);

Extension

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

Sampling from textures in the COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT format performs a color space conversion as specified for SRGB textures in the EXT_sRGB OpenGL ES extension. Compression format COMPRESSED_RGBA_BPTC_UNORM_EXT, COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT, COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT, and COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_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.

If the internalformat is one of the BPTC internal formats from this specification, 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_bptc[src]

Trait Implementations

impl AsRef<Reference> for EXT_texture_compression_bptc[src]

impl Clone for EXT_texture_compression_bptc[src]

impl Debug for EXT_texture_compression_bptc[src]

impl Extension for EXT_texture_compression_bptc[src]

impl From<EXT_texture_compression_bptc> for Reference[src]

impl InstanceOf for EXT_texture_compression_bptc[src]

impl JsSerialize for EXT_texture_compression_bptc[src]

impl JsSerializeOwned for EXT_texture_compression_bptc[src]

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

impl ReferenceType for EXT_texture_compression_bptc[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<EXT_texture_compression_bptc> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for EXT_texture_compression_bptc[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for EXT_texture_compression_bptc[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.