#[repr(C)]
pub struct WebGL2RenderingContext {
Show 20 fields reflector_: Reflector, base: Dom<WebGLRenderingContext>, occlusion_query: MutNullableDom<WebGLQuery>, primitives_query: MutNullableDom<WebGLQuery>, samplers: Box<[MutNullableDom<WebGLSampler>]>, bound_copy_read_buffer: MutNullableDom<WebGLBuffer>, bound_copy_write_buffer: MutNullableDom<WebGLBuffer>, bound_pixel_pack_buffer: MutNullableDom<WebGLBuffer>, bound_pixel_unpack_buffer: MutNullableDom<WebGLBuffer>, bound_transform_feedback_buffer: MutNullableDom<WebGLBuffer>, bound_uniform_buffer: MutNullableDom<WebGLBuffer>, indexed_uniform_buffer_bindings: Box<[IndexedBinding]>, indexed_transform_feedback_buffer_bindings: Box<[IndexedBinding]>, current_transform_feedback: MutNullableDom<WebGLTransformFeedback>, texture_pack_row_length: Cell<usize>, texture_pack_skip_pixels: Cell<usize>, texture_pack_skip_rows: Cell<usize>, enable_rasterizer_discard: Cell<bool>, default_fb_readbuffer: Cell<u32>, default_fb_drawbuffer: Cell<u32>,
}

Fields§

§reflector_: Reflector§base: Dom<WebGLRenderingContext>§occlusion_query: MutNullableDom<WebGLQuery>§primitives_query: MutNullableDom<WebGLQuery>§samplers: Box<[MutNullableDom<WebGLSampler>]>§bound_copy_read_buffer: MutNullableDom<WebGLBuffer>§bound_copy_write_buffer: MutNullableDom<WebGLBuffer>§bound_pixel_pack_buffer: MutNullableDom<WebGLBuffer>§bound_pixel_unpack_buffer: MutNullableDom<WebGLBuffer>§bound_transform_feedback_buffer: MutNullableDom<WebGLBuffer>§bound_uniform_buffer: MutNullableDom<WebGLBuffer>§indexed_uniform_buffer_bindings: Box<[IndexedBinding]>§indexed_transform_feedback_buffer_bindings: Box<[IndexedBinding]>§current_transform_feedback: MutNullableDom<WebGLTransformFeedback>§texture_pack_row_length: Cell<usize>§texture_pack_skip_pixels: Cell<usize>§texture_pack_skip_rows: Cell<usize>§enable_rasterizer_discard: Cell<bool>§default_fb_readbuffer: Cell<u32>§default_fb_drawbuffer: Cell<u32>

Implementations§

source§

impl WebGL2RenderingContext

source§

impl WebGL2RenderingContext

source§

impl WebGL2RenderingContext

source

pub fn recreate(&self, size: Size2D<u32>)

source

pub fn current_vao(&self) -> Root<Dom<WebGLVertexArrayObject>>

source

pub fn validate_uniform_block_for_draw(&self)

source

fn validate_vertex_attribs_for_draw(&self)

source

pub fn base_context(&self) -> Root<Dom<WebGLRenderingContext>>

source

fn bound_buffer( &self, target: u32 ) -> WebGLResult<Option<Root<Dom<WebGLBuffer>>>>

source

pub fn buffer_usage(&self, usage: u32) -> WebGLResult<u32>

source

fn unbind_from(&self, slot: &MutNullableDom<WebGLBuffer>, buffer: &WebGLBuffer)

source

fn calc_read_pixel_formats( &self, pixel_type: u32, format: u32 ) -> WebGLResult<ReadPixelsAllowedFormats<'_>>

source

fn calc_read_pixel_sizes( &self, width: i32, height: i32, bytes_per_pixel: usize ) -> WebGLResult<ReadPixelsSizes>

source

fn read_pixels_into( &self, x: i32, y: i32, width: i32, height: i32, format: u32, pixel_type: u32, dst: &mut ArrayBufferView, dst_elem_offset: u32 )

source

fn uniform_vec_section_uint( &self, vec: Uint32ArrayOrUnsignedLongSequence, offset: u32, length: u32, uniform_size: usize, uniform_location: &WebGLUniformLocation ) -> WebGLResult<Vec<u32>>

source

fn get_default_fb_attachment_param( &self, attachment: u32, pname: u32 ) -> WebGLResult<JSVal>

source

fn get_specific_fb_attachment_param( &self, cx: JSContext, fb: &WebGLFramebuffer, target: u32, attachment: u32, pname: u32 ) -> WebGLResult<JSVal>

source

fn clearbuffer_array_size( &self, buffer: u32, draw_buffer: i32 ) -> WebGLResult<usize>

source

fn clear_buffer<T: Clone>( &self, buffer: u32, draw_buffer: i32, valid_buffers: &[u32], src_offset: u32, array: Vec<T>, msg: fn(_: u32, _: i32, _: Vec<T>) -> WebGLCommand )

source

fn valid_fb_attachment_values(&self, target: u32, attachments: &[u32]) -> bool

source

fn vertex_attrib_i(&self, index: u32, x: i32, y: i32, z: i32, w: i32)

source

fn vertex_attrib_u(&self, index: u32, x: u32, y: u32, z: u32, w: u32)

source

fn tex_storage( &self, dimensions: u8, target: u32, levels: i32, internal_format: u32, width: i32, height: i32, depth: i32 )

Trait Implementations§

source§

impl DomObject for WebGL2RenderingContext

source§

fn reflector(&self) -> &Reflector

Returns the receiver’s reflector.
source§

fn global(&self) -> Root<Dom<GlobalScope>>where Self: Sized,

Returns the global scope of the realm that the DomObject was created in.
source§

impl DomObjectWrap for WebGL2RenderingContext

source§

const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::WebGL2RenderingContextBinding::WebGL2RenderingContext_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::webgl2renderingcontext::WebGL2RenderingContext>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::webgl2renderingcontext::WebGL2RenderingContext>>}

Function pointer to the general wrap function type
source§

impl HasParent for WebGL2RenderingContext

source§

fn as_parent(&self) -> &Reflector

This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is

§

type Parent = Reflector

source§

impl IDLInterface for WebGL2RenderingContext

source§

fn derives(class: &'static DOMClass) -> bool

Returns whether the given DOM class derives that interface.
source§

impl MallocSizeOf for WebGL2RenderingContext

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl MutDomObject for WebGL2RenderingContext

source§

unsafe fn init_reflector(&self, obj: *mut JSObject)

Initializes the Reflector
source§

impl PartialEq<WebGL2RenderingContext> for WebGL2RenderingContext

source§

fn eq(&self, other: &WebGL2RenderingContext) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToJSValConvertible for WebGL2RenderingContext

source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
source§

impl Traceable for WebGL2RenderingContext

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
source§

impl WebGL2RenderingContextMethods for WebGL2RenderingContext

source§

fn Canvas(&self) -> Root<Dom<HTMLCanvasElement>>

source§

fn Flush(&self)

source§

fn Finish(&self)

source§

fn DrawingBufferWidth(&self) -> i32

source§

fn DrawingBufferHeight(&self) -> i32

source§

fn GetBufferParameter( &self, _cx: JSContext, target: u32, parameter: u32 ) -> JSVal

source§

fn GetParameter(&self, cx: JSContext, parameter: u32) -> JSVal

source§

fn GetTexParameter(&self, cx: JSContext, target: u32, pname: u32) -> JSVal

source§

fn GetError(&self) -> u32

source§

fn GetContextAttributes(&self) -> Option<WebGLContextAttributes>

source§

fn GetSupportedExtensions(&self) -> Option<Vec<DOMString>>

source§

fn GetExtension( &self, cx: JSContext, name: DOMString ) -> Option<NonNull<JSObject>>

source§

fn GetFramebufferAttachmentParameter( &self, cx: JSContext, target: u32, attachment: u32, pname: u32 ) -> JSVal

source§

fn GetRenderbufferParameter( &self, cx: JSContext, target: u32, pname: u32 ) -> JSVal

source§

fn ActiveTexture(&self, texture: u32)

source§

fn BlendColor(&self, r: f32, g: f32, b: f32, a: f32)

source§

fn BlendEquation(&self, mode: u32)

source§

fn BlendEquationSeparate(&self, mode_rgb: u32, mode_alpha: u32)

source§

fn BlendFunc(&self, src_factor: u32, dest_factor: u32)

source§

fn BlendFuncSeparate( &self, src_rgb: u32, dest_rgb: u32, src_alpha: u32, dest_alpha: u32 )

source§

fn AttachShader(&self, program: &WebGLProgram, shader: &WebGLShader)

source§

fn DetachShader(&self, program: &WebGLProgram, shader: &WebGLShader)

source§

fn BindAttribLocation( &self, program: &WebGLProgram, index: u32, name: DOMString )

source§

fn BindBuffer(&self, target: u32, buffer: Option<&WebGLBuffer>)

source§

fn BindFramebuffer(&self, target: u32, framebuffer: Option<&WebGLFramebuffer>)

source§

fn BindRenderbuffer( &self, target: u32, renderbuffer: Option<&WebGLRenderbuffer> )

source§

fn BindTexture(&self, target: u32, texture: Option<&WebGLTexture>)

source§

fn GenerateMipmap(&self, target: u32)

source§

fn BufferData_( &self, target: u32, data: Option<ArrayBufferViewOrArrayBuffer>, usage: u32 )

source§

fn BufferData(&self, target: u32, size: i64, usage: u32)

source§

fn BufferData__( &self, target: u32, data: CustomAutoRooterGuard<'_, ArrayBufferView>, usage: u32, elem_offset: u32, length: u32 )

source§

fn BufferSubData( &self, target: u32, offset: i64, data: ArrayBufferViewOrArrayBuffer )

source§

fn BufferSubData_( &self, target: u32, dst_byte_offset: i64, src_data: CustomAutoRooterGuard<'_, ArrayBufferView>, src_elem_offset: u32, length: u32 )

source§

fn CopyBufferSubData( &self, read_target: u32, write_target: u32, read_offset: i64, write_offset: i64, size: i64 )

source§

fn GetBufferSubData( &self, target: u32, src_byte_offset: i64, dst_buffer: CustomAutoRooterGuard<'_, ArrayBufferView>, dst_elem_offset: u32, length: u32 )

source§

fn CompressedTexImage2D( &self, target: u32, level: i32, internal_format: u32, width: i32, height: i32, border: i32, pixels: CustomAutoRooterGuard<'_, ArrayBufferView>, src_offset: u32, src_length_override: u32 )

source§

fn CompressedTexSubImage2D( &self, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, pixels: CustomAutoRooterGuard<'_, ArrayBufferView>, src_offset: u32, src_length_override: u32 )

source§

fn CopyTexImage2D( &self, target: u32, level: i32, internal_format: u32, x: i32, y: i32, width: i32, height: i32, border: i32 )

source§

fn CopyTexSubImage2D( &self, target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32 )

source§

fn Clear(&self, mask: u32)

source§

fn ClearColor(&self, red: f32, green: f32, blue: f32, alpha: f32)

source§

fn ClearDepth(&self, depth: f32)

source§

fn ClearStencil(&self, stencil: i32)

source§

fn ColorMask(&self, r: bool, g: bool, b: bool, a: bool)

source§

fn CullFace(&self, mode: u32)

source§

fn FrontFace(&self, mode: u32)

source§

fn DepthFunc(&self, func: u32)

source§

fn DepthMask(&self, flag: bool)

source§

fn DepthRange(&self, near: f32, far: f32)

source§

fn Enable(&self, cap: u32)

source§

fn Disable(&self, cap: u32)

source§

fn CompileShader(&self, shader: &WebGLShader)

source§

fn CreateBuffer(&self) -> Option<Root<Dom<WebGLBuffer>>>

source§

fn CreateFramebuffer(&self) -> Option<Root<Dom<WebGLFramebuffer>>>

source§

fn CreateRenderbuffer(&self) -> Option<Root<Dom<WebGLRenderbuffer>>>

source§

fn CreateTexture(&self) -> Option<Root<Dom<WebGLTexture>>>

source§

fn CreateProgram(&self) -> Option<Root<Dom<WebGLProgram>>>

source§

fn CreateShader(&self, shader_type: u32) -> Option<Root<Dom<WebGLShader>>>

source§

fn CreateVertexArray(&self) -> Option<Root<Dom<WebGLVertexArrayObject>>>

source§

fn DeleteBuffer(&self, buffer: Option<&WebGLBuffer>)

source§

fn DeleteFramebuffer(&self, framebuffer: Option<&WebGLFramebuffer>)

source§

fn DeleteRenderbuffer(&self, renderbuffer: Option<&WebGLRenderbuffer>)

source§

fn DeleteTexture(&self, texture: Option<&WebGLTexture>)

source§

fn DeleteProgram(&self, program: Option<&WebGLProgram>)

source§

fn DeleteShader(&self, shader: Option<&WebGLShader>)

source§

fn DeleteVertexArray(&self, vertex_array: Option<&WebGLVertexArrayObject>)

source§

fn DrawArrays(&self, mode: u32, first: i32, count: i32)

source§

fn DrawElements(&self, mode: u32, count: i32, type_: u32, offset: i64)

source§

fn EnableVertexAttribArray(&self, attrib_id: u32)

source§

fn DisableVertexAttribArray(&self, attrib_id: u32)

source§

fn GetActiveUniform( &self, program: &WebGLProgram, index: u32 ) -> Option<Root<Dom<WebGLActiveInfo>>>

source§

fn GetActiveAttrib( &self, program: &WebGLProgram, index: u32 ) -> Option<Root<Dom<WebGLActiveInfo>>>

source§

fn GetAttribLocation(&self, program: &WebGLProgram, name: DOMString) -> i32

source§

fn GetFragDataLocation(&self, program: &WebGLProgram, name: DOMString) -> i32

source§

fn GetProgramInfoLog(&self, program: &WebGLProgram) -> Option<DOMString>

source§

fn GetProgramParameter( &self, cx: JSContext, program: &WebGLProgram, param_id: u32 ) -> JSVal

source§

fn GetShaderInfoLog(&self, shader: &WebGLShader) -> Option<DOMString>

source§

fn GetShaderParameter( &self, cx: JSContext, shader: &WebGLShader, param_id: u32 ) -> JSVal

source§

fn GetShaderPrecisionFormat( &self, shader_type: u32, precision_type: u32 ) -> Option<Root<Dom<WebGLShaderPrecisionFormat>>>

source§

fn GetIndexedParameter(&self, cx: JSContext, target: u32, index: u32) -> JSVal

source§

fn GetUniformLocation( &self, program: &WebGLProgram, name: DOMString ) -> Option<Root<Dom<WebGLUniformLocation>>>

source§

fn GetVertexAttrib(&self, cx: JSContext, index: u32, pname: u32) -> JSVal

source§

fn GetVertexAttribOffset(&self, index: u32, pname: u32) -> i64

source§

fn Hint(&self, target: u32, mode: u32)

source§

fn IsBuffer(&self, buffer: Option<&WebGLBuffer>) -> bool

source§

fn IsEnabled(&self, cap: u32) -> bool

source§

fn IsFramebuffer(&self, frame_buffer: Option<&WebGLFramebuffer>) -> bool

source§

fn IsProgram(&self, program: Option<&WebGLProgram>) -> bool

source§

fn IsRenderbuffer(&self, render_buffer: Option<&WebGLRenderbuffer>) -> bool

source§

fn IsShader(&self, shader: Option<&WebGLShader>) -> bool

source§

fn IsTexture(&self, texture: Option<&WebGLTexture>) -> bool

source§

fn IsVertexArray(&self, vertex_array: Option<&WebGLVertexArrayObject>) -> bool

source§

fn LineWidth(&self, width: f32)

source§

fn PixelStorei(&self, param_name: u32, param_value: i32)

source§

fn PolygonOffset(&self, factor: f32, units: f32)

source§

fn ReadPixels( &self, x: i32, y: i32, width: i32, height: i32, format: u32, pixel_type: u32, pixels: CustomAutoRooterGuard<'_, Option<ArrayBufferView>> )

source§

fn ReadPixels_( &self, x: i32, y: i32, width: i32, height: i32, format: u32, pixel_type: u32, dst_byte_offset: i64 )

source§

fn ReadPixels__( &self, x: i32, y: i32, width: i32, height: i32, format: u32, pixel_type: u32, dst: CustomAutoRooterGuard<'_, ArrayBufferView>, dst_elem_offset: u32 )

source§

fn SampleCoverage(&self, value: f32, invert: bool)

source§

fn Scissor(&self, x: i32, y: i32, width: i32, height: i32)

source§

fn StencilFunc(&self, func: u32, ref_: i32, mask: u32)

source§

fn StencilFuncSeparate(&self, face: u32, func: u32, ref_: i32, mask: u32)

source§

fn StencilMask(&self, mask: u32)

source§

fn StencilMaskSeparate(&self, face: u32, mask: u32)

source§

fn StencilOp(&self, fail: u32, zfail: u32, zpass: u32)

source§

fn StencilOpSeparate(&self, face: u32, fail: u32, zfail: u32, zpass: u32)

source§

fn LinkProgram(&self, program: &WebGLProgram)

source§

fn ShaderSource(&self, shader: &WebGLShader, source: DOMString)

source§

fn GetShaderSource(&self, shader: &WebGLShader) -> Option<DOMString>

source§

fn Uniform1f(&self, location: Option<&WebGLUniformLocation>, val: f32)

source§

fn Uniform1i(&self, location: Option<&WebGLUniformLocation>, val: i32)

source§

fn Uniform1iv( &self, location: Option<&WebGLUniformLocation>, v: Int32ArrayOrLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform1fv( &self, location: Option<&WebGLUniformLocation>, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform2f(&self, location: Option<&WebGLUniformLocation>, x: f32, y: f32)

source§

fn Uniform2fv( &self, location: Option<&WebGLUniformLocation>, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform2i(&self, location: Option<&WebGLUniformLocation>, x: i32, y: i32)

source§

fn Uniform2iv( &self, location: Option<&WebGLUniformLocation>, v: Int32ArrayOrLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform3f( &self, location: Option<&WebGLUniformLocation>, x: f32, y: f32, z: f32 )

source§

fn Uniform3fv( &self, location: Option<&WebGLUniformLocation>, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform3i( &self, location: Option<&WebGLUniformLocation>, x: i32, y: i32, z: i32 )

source§

fn Uniform3iv( &self, location: Option<&WebGLUniformLocation>, v: Int32ArrayOrLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform4i( &self, location: Option<&WebGLUniformLocation>, x: i32, y: i32, z: i32, w: i32 )

source§

fn Uniform4iv( &self, location: Option<&WebGLUniformLocation>, v: Int32ArrayOrLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform4f( &self, location: Option<&WebGLUniformLocation>, x: f32, y: f32, z: f32, w: f32 )

source§

fn Uniform4fv( &self, location: Option<&WebGLUniformLocation>, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix2fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix3fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix4fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, v: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix3x2fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, val: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix4x2fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, val: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix2x3fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, val: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix4x3fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, val: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix2x4fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, val: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn UniformMatrix3x4fv( &self, location: Option<&WebGLUniformLocation>, transpose: bool, val: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32, src_length: u32 )

source§

fn GetUniform( &self, cx: JSContext, program: &WebGLProgram, location: &WebGLUniformLocation ) -> JSVal

source§

fn UseProgram(&self, program: Option<&WebGLProgram>)

source§

fn ValidateProgram(&self, program: &WebGLProgram)

source§

fn VertexAttrib1f(&self, indx: u32, x: f32)

source§

fn VertexAttrib1fv(&self, indx: u32, v: Float32ArrayOrUnrestrictedFloatSequence)

source§

fn VertexAttrib2f(&self, indx: u32, x: f32, y: f32)

source§

fn VertexAttrib2fv(&self, indx: u32, v: Float32ArrayOrUnrestrictedFloatSequence)

source§

fn VertexAttrib3f(&self, indx: u32, x: f32, y: f32, z: f32)

source§

fn VertexAttrib3fv(&self, indx: u32, v: Float32ArrayOrUnrestrictedFloatSequence)

source§

fn VertexAttrib4f(&self, indx: u32, x: f32, y: f32, z: f32, w: f32)

source§

fn VertexAttrib4fv(&self, indx: u32, v: Float32ArrayOrUnrestrictedFloatSequence)

source§

fn VertexAttribI4i(&self, index: u32, x: i32, y: i32, z: i32, w: i32)

source§

fn VertexAttribI4iv(&self, index: u32, v: Int32ArrayOrLongSequence)

source§

fn VertexAttribI4ui(&self, index: u32, x: u32, y: u32, z: u32, w: u32)

source§

fn VertexAttribI4uiv(&self, index: u32, v: Uint32ArrayOrUnsignedLongSequence)

source§

fn VertexAttribPointer( &self, attrib_id: u32, size: i32, data_type: u32, normalized: bool, stride: i32, offset: i64 )

source§

fn VertexAttribIPointer( &self, index: u32, size: i32, type_: u32, stride: i32, offset: i64 )

source§

fn Viewport(&self, x: i32, y: i32, width: i32, height: i32)

source§

fn TexImage2D( &self, target: u32, level: i32, internal_format: i32, width: i32, height: i32, border: i32, format: u32, data_type: u32, pixels: CustomAutoRooterGuard<'_, Option<ArrayBufferView>> ) -> Result<(), Error>

source§

fn TexImage2D_( &self, target: u32, level: i32, internal_format: i32, format: u32, data_type: u32, source: ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement ) -> Result<(), Error>

source§

fn TexImage2D__( &self, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pbo_offset: i64 ) -> Result<(), Error>

source§

fn TexImage2D___( &self, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement ) -> Result<(), Error>

source§

fn TexImage2D____( &self, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, src_data: CustomAutoRooterGuard<'_, ArrayBufferView>, src_offset: u32 ) -> Result<(), Error>

source§

fn TexSubImage2D( &self, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, data_type: u32, pixels: CustomAutoRooterGuard<'_, Option<ArrayBufferView>> ) -> Result<(), Error>

source§

fn TexSubImage2D_( &self, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, data_type: u32, source: ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement ) -> Result<(), Error>

source§

fn TexParameterf(&self, target: u32, name: u32, value: f32)

source§

fn TexParameteri(&self, target: u32, name: u32, value: i32)

source§

fn CheckFramebufferStatus(&self, target: u32) -> u32

source§

fn RenderbufferStorage( &self, target: u32, internal_format: u32, width: i32, height: i32 )

source§

fn FramebufferRenderbuffer( &self, target: u32, attachment: u32, renderbuffertarget: u32, rb: Option<&WebGLRenderbuffer> )

source§

fn FramebufferTexture2D( &self, target: u32, attachment: u32, textarget: u32, texture: Option<&WebGLTexture>, level: i32 )

source§

fn GetAttachedShaders( &self, program: &WebGLProgram ) -> Option<Vec<Root<Dom<WebGLShader>>>>

source§

fn DrawArraysInstanced(&self, mode: u32, first: i32, count: i32, primcount: i32)

source§

fn DrawElementsInstanced( &self, mode: u32, count: i32, type_: u32, offset: i64, primcount: i32 )

source§

fn DrawRangeElements( &self, mode: u32, start: u32, end: u32, count: i32, type_: u32, offset: i64 )

source§

fn VertexAttribDivisor(&self, index: u32, divisor: u32)

source§

fn CreateQuery(&self) -> Option<Root<Dom<WebGLQuery>>>

source§

fn DeleteQuery(&self, query: Option<&WebGLQuery>)

source§

fn IsQuery(&self, query: Option<&WebGLQuery>) -> bool

source§

fn CreateSampler(&self) -> Option<Root<Dom<WebGLSampler>>>

source§

fn DeleteSampler(&self, sampler: Option<&WebGLSampler>)

source§

fn IsSampler(&self, sampler: Option<&WebGLSampler>) -> bool

source§

fn BeginQuery(&self, target: u32, query: &WebGLQuery)

source§

fn EndQuery(&self, target: u32)

source§

fn GetQuery(&self, target: u32, pname: u32) -> Option<Root<Dom<WebGLQuery>>>

source§

fn GetQueryParameter( &self, _cx: JSContext, query: &WebGLQuery, pname: u32 ) -> JSVal

source§

fn FenceSync(&self, condition: u32, flags: u32) -> Option<Root<Dom<WebGLSync>>>

source§

fn IsSync(&self, sync: Option<&WebGLSync>) -> bool

source§

fn ClientWaitSync(&self, sync: &WebGLSync, flags: u32, timeout: u64) -> u32

source§

fn WaitSync(&self, sync: &WebGLSync, flags: u32, timeout: i64)

source§

fn GetSyncParameter( &self, _cx: JSContext, sync: &WebGLSync, pname: u32 ) -> JSVal

source§

fn DeleteSync(&self, sync: Option<&WebGLSync>)

source§

fn BindSampler(&self, unit: u32, sampler: Option<&WebGLSampler>)

source§

fn BindVertexArray(&self, array: Option<&WebGLVertexArrayObject>)

source§

fn SamplerParameteri(&self, sampler: &WebGLSampler, pname: u32, param: i32)

source§

fn SamplerParameterf(&self, sampler: &WebGLSampler, pname: u32, param: f32)

source§

fn GetSamplerParameter( &self, _cx: JSContext, sampler: &WebGLSampler, pname: u32 ) -> JSVal

source§

fn CreateTransformFeedback(&self) -> Option<Root<Dom<WebGLTransformFeedback>>>

source§

fn DeleteTransformFeedback(&self, tf: Option<&WebGLTransformFeedback>)

source§

fn IsTransformFeedback(&self, tf: Option<&WebGLTransformFeedback>) -> bool

source§

fn BindTransformFeedback( &self, target: u32, tf: Option<&WebGLTransformFeedback> )

source§

fn BeginTransformFeedback(&self, primitiveMode: u32)

source§

fn EndTransformFeedback(&self)

source§

fn ResumeTransformFeedback(&self)

source§

fn PauseTransformFeedback(&self)

source§

fn TransformFeedbackVaryings( &self, program: &WebGLProgram, varyings: Vec<DOMString>, bufferMode: u32 )

source§

fn GetTransformFeedbackVarying( &self, program: &WebGLProgram, index: u32 ) -> Option<Root<Dom<WebGLActiveInfo>>>

source§

fn BindBufferBase(&self, target: u32, index: u32, buffer: Option<&WebGLBuffer>)

source§

fn BindBufferRange( &self, target: u32, index: u32, buffer: Option<&WebGLBuffer>, offset: i64, size: i64 )

source§

fn GetUniformIndices( &self, program: &WebGLProgram, names: Vec<DOMString> ) -> Option<Vec<u32>>

source§

fn GetActiveUniforms( &self, cx: JSContext, program: &WebGLProgram, indices: Vec<u32>, pname: u32 ) -> JSVal

source§

fn GetUniformBlockIndex( &self, program: &WebGLProgram, block_name: DOMString ) -> u32

source§

fn GetActiveUniformBlockParameter( &self, cx: JSContext, program: &WebGLProgram, block_index: u32, pname: u32 ) -> JSVal

source§

fn GetActiveUniformBlockName( &self, program: &WebGLProgram, block_index: u32 ) -> Option<DOMString>

source§

fn UniformBlockBinding( &self, program: &WebGLProgram, block_index: u32, block_binding: u32 )

source§

fn ClearBufferfv( &self, buffer: u32, draw_buffer: i32, values: Float32ArrayOrUnrestrictedFloatSequence, src_offset: u32 )

source§

fn ClearBufferiv( &self, buffer: u32, draw_buffer: i32, values: Int32ArrayOrLongSequence, src_offset: u32 )

source§

fn ClearBufferuiv( &self, buffer: u32, draw_buffer: i32, values: Uint32ArrayOrUnsignedLongSequence, src_offset: u32 )

source§

fn ClearBufferfi(&self, buffer: u32, draw_buffer: i32, depth: f32, stencil: i32)

source§

fn InvalidateFramebuffer(&self, target: u32, attachments: Vec<u32>)

source§

fn InvalidateSubFramebuffer( &self, target: u32, attachments: Vec<u32>, x: i32, y: i32, width: i32, height: i32 )

source§

fn FramebufferTextureLayer( &self, target: u32, attachment: u32, texture: Option<&WebGLTexture>, level: i32, layer: i32 )

source§

fn GetInternalformatParameter( &self, cx: JSContext, target: u32, internal_format: u32, pname: u32 ) -> JSVal

source§

fn RenderbufferStorageMultisample( &self, target: u32, samples: i32, internal_format: u32, width: i32, height: i32 )

source§

fn ReadBuffer(&self, src: u32)

source§

fn DrawBuffers(&self, buffers: Vec<u32>)

source§

fn TexStorage2D( &self, target: u32, levels: i32, internal_format: u32, width: i32, height: i32 )

source§

fn TexStorage3D( &self, target: u32, levels: i32, internal_format: u32, width: i32, height: i32, depth: i32 )

source§

fn IsContextLost(&self) -> bool

source§

fn Uniform1ui(&self, location: Option<&WebGLUniformLocation>, val: u32)

source§

fn Uniform1uiv( &self, location: Option<&WebGLUniformLocation>, val: Uint32ArrayOrUnsignedLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform2ui(&self, location: Option<&WebGLUniformLocation>, x: u32, y: u32)

source§

fn Uniform2uiv( &self, location: Option<&WebGLUniformLocation>, val: Uint32ArrayOrUnsignedLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform3ui( &self, location: Option<&WebGLUniformLocation>, x: u32, y: u32, z: u32 )

source§

fn Uniform3uiv( &self, location: Option<&WebGLUniformLocation>, val: Uint32ArrayOrUnsignedLongSequence, src_offset: u32, src_length: u32 )

source§

fn Uniform4ui( &self, location: Option<&WebGLUniformLocation>, x: u32, y: u32, z: u32, w: u32 )

source§

fn Uniform4uiv( &self, location: Option<&WebGLUniformLocation>, val: Uint32ArrayOrUnsignedLongSequence, src_offset: u32, src_length: u32 )

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> MaybeBoxed<Box<T, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> Erased for T

source§

impl<T> ErasedDestructor for Twhere T: 'static,

source§

impl<T> MaybeSendSync for T