pub struct WEBGL_compressed_texture_etc1(_);
Expand description
Extension
This extension exposes the compressed texture format defined in the OES_compressed_ETC1_RGB8_texture OpenGL ES extension to WebGL. Compression format COMPRESSED_RGB_ETC1_WEBGL may be passed to the compressedTexImage2D entry point. This format correspond to the format defined in the OES_compressed_ETC1_RGB8_texture OpenGL ES extension. Although the enum name is changed, the numeric value is the same. The correspondence is given by this table: WebGL format enum OpenGL format enum Numeric value COMPRESSED_RGB_ETC1_WEBGL ETC1_RGB8_OES 0x8D64 Calling getParameter with the argument COMPRESSED_TEXTURE_FORMATS will include the format from this specification.
The following format-specific restrictions must be enforced: COMPRESSED_RGB_ETC1_WEBGL
The byteLength of the ArrayBufferView, pixels, passed to compressedTexImage2D must be equal to the following number of bytes:
floor((width + 3) / 4) * floor((height + 3) / 4) * 8
If it is not, an INVALID_VALUE error is generated.
Implementations
sourceimpl WEBGL_compressed_texture_etc1
impl WEBGL_compressed_texture_etc1
pub const COMPRESSED_RGB_ETC1_WEBGL: GLenum = 36_196u32
Trait Implementations
sourceimpl Clone for WEBGL_compressed_texture_etc1
impl Clone for WEBGL_compressed_texture_etc1
sourcefn clone(&self) -> WEBGL_compressed_texture_etc1
fn clone(&self) -> WEBGL_compressed_texture_etc1
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for WEBGL_compressed_texture_etc1
impl Debug for WEBGL_compressed_texture_etc1
sourceimpl From<WEBGL_compressed_texture_etc1> for Reference
impl From<WEBGL_compressed_texture_etc1> for Reference
sourcefn from(value: WEBGL_compressed_texture_etc1) -> Self
fn from(value: WEBGL_compressed_texture_etc1) -> Self
sourceimpl InstanceOf for WEBGL_compressed_texture_etc1
impl InstanceOf for WEBGL_compressed_texture_etc1
sourcefn instance_of(_reference: &Reference) -> bool
fn instance_of(_reference: &Reference) -> bool
Self
.