pub struct WebGLImpl;Expand description
WebGL Commands Implementation
Implementations§
Source§impl WebGLImpl
impl WebGLImpl
pub fn apply( device: &Device, ctx: &Context, gl: &Gl, state: &mut GLState, attributes: &GLContextAttributes, command: WebGLCommand, _backtrace: WebGLCommandBacktrace, )
fn initialize_framebuffer( gl: &Gl, state: &GLState, color: bool, depth: bool, stencil: bool, )
fn link_program(gl: &Gl, program: WebGLProgramId) -> ProgramLinkInfo
fn finish(gl: &Gl, chan: &GenericSender<()>)
fn shader_precision_format( gl: &Gl, shader_type: u32, precision_type: u32, chan: &GenericSender<(i32, i32, i32)>, )
Sourcefn get_extensions(gl: &Gl, result_sender: &GenericSender<String>)
fn get_extensions(gl: &Gl, result_sender: &GenericSender<String>)
This is an implementation of getSupportedExtensions() from
https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
Sourcefn get_framebuffer_attachment_parameter(
gl: &Gl,
target: u32,
attachment: u32,
pname: u32,
chan: &GenericSender<i32>,
)
fn get_framebuffer_attachment_parameter( gl: &Gl, target: u32, attachment: u32, pname: u32, chan: &GenericSender<i32>, )
Sourcefn read_draw_framebuffer_bits(gl: &Gl, attachment: u32, pname: u32) -> i32
fn read_draw_framebuffer_bits(gl: &Gl, attachment: u32, pname: u32) -> i32
Reads one component size of a draw framebuffer attachment, or 0 when
nothing is attached, as OpenGL ES 3.0.6 §4.4.5 defines the *_BITS values.
Sourcefn get_renderbuffer_parameter(
gl: &Gl,
target: u32,
pname: u32,
chan: &GenericSender<i32>,
)
fn get_renderbuffer_parameter( gl: &Gl, target: u32, pname: u32, chan: &GenericSender<i32>, )
fn uniform_location( gl: &Gl, program_id: WebGLProgramId, name: &str, chan: &GenericSender<Option<i32>>, )
fn shader_info_log( gl: &Gl, shader_id: WebGLShaderId, chan: &GenericSender<String>, )
fn program_info_log( gl: &Gl, program_id: WebGLProgramId, chan: &GenericSender<String>, )
fn create_buffer(gl: &Gl, chan: &GenericSender<Option<WebGLBufferId>>)
fn create_framebuffer(gl: &Gl, chan: &GenericSender<Option<WebGLFramebufferId>>)
fn create_renderbuffer( gl: &Gl, chan: &GenericSender<Option<WebGLRenderbufferId>>, )
fn create_texture(gl: &Gl, chan: &GenericSender<Option<WebGLTextureId>>)
fn create_program(gl: &Gl, chan: &GenericSender<Option<WebGLProgramId>>)
fn create_shader( gl: &Gl, shader_type: u32, chan: &GenericSender<Option<WebGLShaderId>>, )
fn create_vertex_array(gl: &Gl) -> Option<WebGLVertexArrayId>
fn bind_framebuffer( gl: &Gl, target: u32, request: WebGLFramebufferBindingRequest, ctx: &Context, device: &Device, state: &mut GLState, )
Sourcefn default_framebuffer_color_buffer(
buffer: u32,
ctx: &Context,
device: &Device,
) -> u32
fn default_framebuffer_color_buffer( buffer: u32, ctx: &Context, device: &Device, ) -> u32
Maps a WebGL default framebuffer color buffer to its GL name: when the surface is backed
by a framebuffer object, GL rejects BACK and uses COLOR_ATTACHMENT0 for the color
buffer.
fn compile_shader(gl: &Gl, shader_id: WebGLShaderId, source: &str)
Auto Trait Implementations§
impl Freeze for WebGLImpl
impl RefUnwindSafe for WebGLImpl
impl Send for WebGLImpl
impl Sync for WebGLImpl
impl Unpin for WebGLImpl
impl UnsafeUnpin for WebGLImpl
impl UnwindSafe for WebGLImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert