pub struct EXT_texture_compression_bptc(_);
Expand description
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.
Implementations
sourceimpl EXT_texture_compression_bptc
impl EXT_texture_compression_bptc
pub const COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum = 36_492u32
pub const COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum = 36_494u32
pub const COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum = 36_495u32
pub const COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum = 36_493u32
Trait Implementations
sourceimpl AsRef<Reference> for EXT_texture_compression_bptc
impl AsRef<Reference> for EXT_texture_compression_bptc
sourceimpl Clone for EXT_texture_compression_bptc
impl Clone for EXT_texture_compression_bptc
sourcefn clone(&self) -> EXT_texture_compression_bptc
fn clone(&self) -> EXT_texture_compression_bptc
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for EXT_texture_compression_bptc
impl Debug for EXT_texture_compression_bptc
sourceimpl From<EXT_texture_compression_bptc> for Reference
impl From<EXT_texture_compression_bptc> for Reference
sourcefn from(value: EXT_texture_compression_bptc) -> Self
fn from(value: EXT_texture_compression_bptc) -> Self
sourceimpl InstanceOf for EXT_texture_compression_bptc
impl InstanceOf for EXT_texture_compression_bptc
sourcefn instance_of(_reference: &Reference) -> bool
fn instance_of(_reference: &Reference) -> bool
Self
.