[−][src]Module web_glitz::runtime
Provides rendering contexts that act as the main point of interaction with the GPU.
WebGlitz currently only provides a single threaded runtime that can run on the main WASM thread, see the documentation for the single_threaded module for details.
Modules
single_threaded | This module implements a runtime designed to run on a single thread (the main thread). This runtime's RenderingContext implementation, SingleThreadedContext, may be Cloned (which results in another handle to the same context), but neither it nor any of its clones may be send to or shared with other threads/workers. |
state |
Structs
Connection | Encapsulates the raw [WebGl2RenderingContext] and its current state. |
ContextOptions | |
ContextOptionsBuilder | |
ShaderCompilationError | |
SupportedSamples | Returned from [RenderingContext::supported_samples], describes which sampling grid sizes are available. |
SupportedSamplesIter | Iterator over the available sampling grid sizes in a SupportedSamples value. |
UnsupportedSampleCount |
Enums
CreateGraphicsPipelineError | Error returned from [RenderingContext::create_graphics_pipeline]. |
Execution | Returned from RenderingContext::submit, future result of the GpuTask that was submitted that will resolve when the task finishes executing. |
PowerPreference |
Traits
RenderingContext | Trait implemented by types that can serve as a WebGlitz rendering context. |