Struct webgl_stdweb::WEBGL_color_buffer_float
source · pub struct WEBGL_color_buffer_float(_);
Expand description
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.
Implementations
sourceimpl WEBGL_color_buffer_float
impl WEBGL_color_buffer_float
pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum = 33_297u32
pub const RGBA32F_EXT: GLenum = 34_836u32
pub const UNSIGNED_NORMALIZED_EXT: GLenum = 35_863u32
Trait Implementations
sourceimpl AsRef<Reference> for WEBGL_color_buffer_float
impl AsRef<Reference> for WEBGL_color_buffer_float
sourceimpl Clone for WEBGL_color_buffer_float
impl Clone for WEBGL_color_buffer_float
sourcefn clone(&self) -> WEBGL_color_buffer_float
fn clone(&self) -> WEBGL_color_buffer_float
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for WEBGL_color_buffer_float
impl Debug for WEBGL_color_buffer_float
sourceimpl Extension for WEBGL_color_buffer_float
impl Extension for WEBGL_color_buffer_float
sourceimpl From<WEBGL_color_buffer_float> for Reference
impl From<WEBGL_color_buffer_float> for Reference
sourcefn from(value: WEBGL_color_buffer_float) -> Self
fn from(value: WEBGL_color_buffer_float) -> Self
sourceimpl InstanceOf for WEBGL_color_buffer_float
impl InstanceOf for WEBGL_color_buffer_float
sourcefn instance_of(_reference: &Reference) -> bool
fn instance_of(_reference: &Reference) -> bool
Self
.