[−][src]Module web_glitz::extensions
Extended functionality that may not be available in all contexts.
Each extension provides its functionality through a main Extension object that may be
obtained for a rendering context by calling [RenderingContext::get_extension]. This returns an
extension object if the extension is available on the context, or None
otherwise:
use web_glitz::extensions::color_buffer_float::Extension as ColorBufferFloatExtension; let extension: Option<ColorBufferFloatExtension> = context.get_extension(); if let Some(extension) = extension { // Do something with extension... }
Here context
is a [RenderingContext].
Modules
color_buffer_float | Allows images that use a floating point internal format to be attached to render targets. |
texture_float_linear | Allows samplers that use linear interpolation to sample textures that use a 32-bit floating point internal format. |
Traits
Extension | Trait implemented for extension objects, used by [RenderingContext::get_extension] to initialize the extension. |