[−][src]Struct ugli_webgl::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]
pub const COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum
[src]
pub const COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum
[src]
pub const COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum
[src]
pub const COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum
[src]
Trait Implementations
impl AsRef<Reference> for EXT_texture_compression_bptc
[src]
impl Clone for EXT_texture_compression_bptc
[src]
fn clone(&self) -> EXT_texture_compression_bptc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(value: EXT_texture_compression_bptc) -> Self
[src]
impl InstanceOf for EXT_texture_compression_bptc
[src]
fn instance_of(_reference: &Reference) -> bool
[src]
impl JsSerialize for EXT_texture_compression_bptc
[src]
impl JsSerializeOwned for EXT_texture_compression_bptc
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl<'_r> JsSerializeOwned for &'_r EXT_texture_compression_bptc
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl ReferenceType for EXT_texture_compression_bptc
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[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.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
impl<'_r> TryFrom<&'_r Value> for EXT_texture_compression_bptc
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
impl TryFrom<EXT_texture_compression_bptc> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: EXT_texture_compression_bptc) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for EXT_texture_compression_bptc
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
impl TryFrom<Value> for EXT_texture_compression_bptc
[src]
Auto Trait Implementations
impl RefUnwindSafe for EXT_texture_compression_bptc
impl Send for EXT_texture_compression_bptc
impl Sync for EXT_texture_compression_bptc
impl Unpin for EXT_texture_compression_bptc
impl UnwindSafe for EXT_texture_compression_bptc
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,