[][src]Struct ugli_webgl::WEBGL_color_buffer_float

pub struct 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]

Trait Implementations

impl AsRef<Reference> for WEBGL_color_buffer_float[src]

impl Clone for WEBGL_color_buffer_float[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]

impl InstanceOf for WEBGL_color_buffer_float[src]

impl JsSerialize for WEBGL_color_buffer_float[src]

impl JsSerializeOwned for WEBGL_color_buffer_float[src]

impl<'_r> JsSerializeOwned for &'_r WEBGL_color_buffer_float[src]

impl ReferenceType for WEBGL_color_buffer_float[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.

impl<'_r> TryFrom<&'_r Value> for WEBGL_color_buffer_float[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Reference> for WEBGL_color_buffer_float[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for WEBGL_color_buffer_float[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<WEBGL_color_buffer_float> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.