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)>, )
Sourcefn get_extensions(gl: &Gl, result_sender: &WebGLSender<String>)
fn get_extensions(gl: &Gl, result_sender: &WebGLSender<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: &WebGLSender<i32>,
)
fn get_framebuffer_attachment_parameter( gl: &Gl, target: u32, attachment: u32, pname: u32, chan: &WebGLSender<i32>, )
Sourcefn get_renderbuffer_parameter(
gl: &Gl,
target: 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