[−][src]Struct ugli_webgl::WEBGL_color_buffer_float
Extension
Adds support for rendering to 32-bit floating-point color buffers.
The 32-bit floating-point type RGBA32F becomes available as a color-renderable format. Renderbuffers can be created in this format. These and textures created with format = RGBA and type = FLOAT as specified in OES_texture_float, can be attached to framebuffer object color attachments for rendering.
The 32-bit floating-point type RGB32F may also optionally become available as a color-renderable format. These and textures created with format = RGB and type = FLOAT as specified in OES_texture_float, can be attached to framebuffer object color attachments for rendering. Applications must check framebuffer completeness to determine if an implementation actually supports this format.
NOTE: fragment shaders outputs gl_FragColor and gl_FragData[0] will only be clamped and converted when the color buffer is fixed-point and blendColor() and clearColor() will no longer clamp their parameter values on input. Clamping will be applied as necessary at draw time according to the type of color buffer in use.
The format and type combination RGBA and FLOAT becomes valid for reading from a floating-point rendering buffer. Note: RGBA and UNSIGNED_BYTE cannot be used for reading from a floating-point rendering buffer.
The component types of framebuffer object attachments can be queried.
Methods
impl WEBGL_color_buffer_float
[src]
pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum
[src]
pub const RGBA32F_EXT: GLenum
[src]
pub const UNSIGNED_NORMALIZED_EXT: GLenum
[src]
Trait Implementations
impl AsRef<Reference> for WEBGL_color_buffer_float
[src]
impl Clone for WEBGL_color_buffer_float
[src]
fn clone(&self) -> WEBGL_color_buffer_float
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WEBGL_color_buffer_float
[src]
impl Extension for WEBGL_color_buffer_float
[src]
impl From<WEBGL_color_buffer_float> for Reference
[src]
fn from(value: WEBGL_color_buffer_float) -> Self
[src]
impl InstanceOf for WEBGL_color_buffer_float
[src]
fn instance_of(_reference: &Reference) -> bool
[src]
impl JsSerialize for WEBGL_color_buffer_float
[src]
impl JsSerializeOwned for WEBGL_color_buffer_float
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl<'_r> JsSerializeOwned for &'_r WEBGL_color_buffer_float
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl ReferenceType for WEBGL_color_buffer_float
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
impl<'_r> TryFrom<&'_r Reference> for WEBGL_color_buffer_float
[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 WEBGL_color_buffer_float
[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<Reference> for WEBGL_color_buffer_float
[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 WEBGL_color_buffer_float
[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<WEBGL_color_buffer_float> for Reference
[src]
Auto Trait Implementations
impl RefUnwindSafe for WEBGL_color_buffer_float
impl Send for WEBGL_color_buffer_float
impl Sync for WEBGL_color_buffer_float
impl Unpin for WEBGL_color_buffer_float
impl UnwindSafe for WEBGL_color_buffer_float
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>,