Struct canvas::webgl_thread::WebGLImpl
source · 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: &WebGLSender<()>)
fn shader_precision_format( gl: &Gl, shader_type: u32, precision_type: u32, chan: &WebGLSender<(i32, i32, i32)>, )
fn get_extensions(gl: &Gl, chan: &WebGLSender<String>)
fn get_framebuffer_attachment_parameter( gl: &Gl, target: u32, attachment: u32, pname: u32, chan: &WebGLSender<i32>, )
fn get_renderbuffer_parameter( gl: &Gl, target: u32, pname: u32, chan: &WebGLSender<i32>, )
fn uniform_location( gl: &Gl, program_id: WebGLProgramId, name: &str, chan: &WebGLSender<i32>, )
fn shader_info_log( gl: &Gl, shader_id: WebGLShaderId, chan: &WebGLSender<String>, )
fn program_info_log( gl: &Gl, program_id: WebGLProgramId, chan: &WebGLSender<String>, )
fn create_buffer(gl: &Gl, chan: &WebGLSender<Option<WebGLBufferId>>)
fn create_framebuffer(gl: &Gl, chan: &WebGLSender<Option<WebGLFramebufferId>>)
fn create_renderbuffer(gl: &Gl, chan: &WebGLSender<Option<WebGLRenderbufferId>>)
fn create_texture(gl: &Gl, chan: &WebGLSender<Option<WebGLTextureId>>)
fn create_program(gl: &Gl, chan: &WebGLSender<Option<WebGLProgramId>>)
fn create_shader( gl: &Gl, shader_type: u32, chan: &WebGLSender<Option<WebGLShaderId>>, )
fn create_vertex_array(gl: &Gl) -> Option<WebGLVertexArrayId>
fn bind_vertex_array(gl: &Gl, vao: Option<NativeVertexArray>)
fn delete_vertex_array(gl: &Gl, vao: WebGLVertexArrayId)
fn bind_framebuffer( gl: &Gl, target: u32, request: WebGLFramebufferBindingRequest, ctx: &Context, device: &Device, state: &mut GLState, )
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 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