[−][src]Struct ugli_webgl::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]
pub const COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum
[src]
pub const COMPRESSED_RED_RGTC1_EXT: GLenum
[src]
pub const COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum
[src]
pub const COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum
[src]
Trait Implementations
impl AsRef<Reference> for EXT_texture_compression_rgtc
[src]
impl Clone for EXT_texture_compression_rgtc
[src]
fn clone(&self) -> EXT_texture_compression_rgtc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(value: EXT_texture_compression_rgtc) -> Self
[src]
impl InstanceOf for EXT_texture_compression_rgtc
[src]
fn instance_of(_reference: &Reference) -> bool
[src]
impl JsSerialize for EXT_texture_compression_rgtc
[src]
impl JsSerializeOwned for EXT_texture_compression_rgtc
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl<'_r> JsSerializeOwned for &'_r EXT_texture_compression_rgtc
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl ReferenceType for EXT_texture_compression_rgtc
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[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.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
impl<'_r> TryFrom<&'_r Value> for EXT_texture_compression_rgtc
[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_rgtc> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: EXT_texture_compression_rgtc) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for EXT_texture_compression_rgtc
[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_rgtc
[src]
Auto Trait Implementations
impl RefUnwindSafe for EXT_texture_compression_rgtc
impl Send for EXT_texture_compression_rgtc
impl Sync for EXT_texture_compression_rgtc
impl Unpin for EXT_texture_compression_rgtc
impl UnwindSafe for EXT_texture_compression_rgtc
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>,