Enum Parameter

Source
pub enum Parameter {
Show 64 variants BlendEquation = 32_777, BlendEquationAlpha = 34_877, BlendDstRgb = 32_968, BlendSrcRgb = 32_969, BlendDstAlpha = 32_970, BlendSrcAlpha = 32_971, BlendColor = 32_773, ArrayBufferBinding = 34_964, ElementArrayBufferBinding = 34_965, LineWidth = 2_849, AliasedPointSizeRange = 33_901, AliasedLineWidthRange = 33_902, CullFaceMode = 2_885, FrontFace = 2_886, DepthRange = 2_928, DepthWritemask = 2_930, DepthClearValue = 2_931, DepthFunc = 2_932, StencilClearValue = 2_961, StencilFunc = 2_962, StencilFail = 2_964, StencilPassDepthFail = 2_965, StencilPassDepthPass = 2_966, StencilRef = 2_967, StencilValueMask = 2_963, StencilWritemask = 2_968, StencilBackFunc = 34_816, StencilBackFail = 34_817, StencilBackPassDepthFail = 34_818, StencilBackPassDepthPass = 34_819, StencilBackRef = 36_003, StencilBackValueMask = 36_004, StencilBackWritemask = 36_005, Viewport = 2_978, ScissorBox = 3_088, ColorClearValue = 3_106, ColorWritemask = 3_107, UnpackAlignment = 3_317, PackAlignment = 3_333, MaxTextureSize = 3_379, MaxViewportDims = 3_386, SubpixelBits = 3_408, RedBits = 3_410, GreenBits = 3_411, BlueBits = 3_412, AlphaBits = 3_413, DepthBits = 3_414, StencilBits = 3_415, PolygonOffsetUnits = 10_752, PolygonOffsetFactor = 32_824, TextureBinding2d = 32_873, SampleBuffers = 32_936, Samples = 32_937, SampleCoverageValue = 32_938, SampleCoverageInvert = 32_939, CompressedTextureFormats = 34_467, Vendor = 7_936, Renderer = 7_937, Version = 7_938, ImplementationColorReadType = 35_738, ImplementationColorReadFormat = 35_739, BrowserDefaultWebgl = 37_444, TextureBindingCubeMap = 34_068, MaxCubeMapTextureSize = 34_076,
}
Expand description

Constants passed to WebGLRenderingContext.getParameter() to specify what information to return.

Variants§

§

BlendEquation = 32_777

Passed to getParameter to get the current RGB blend function. same as BlendEquationRgb

§

BlendEquationAlpha = 34_877

Passed to getParameter to get the current alpha blend function. Same as BLEND_EQUATION

§

BlendDstRgb = 32_968

Passed to getParameter to get the current destination RGB blend function.

§

BlendSrcRgb = 32_969

Passed to getParameter to get the current destination RGB blend function.

§

BlendDstAlpha = 32_970

Passed to getParameter to get the current destination alpha blend function.

§

BlendSrcAlpha = 32_971

Passed to getParameter to get the current source alpha blend function.

§

BlendColor = 32_773

Passed to getParameter to return a the current blend color.

§

ArrayBufferBinding = 34_964

Passed to getParameter to get the array buffer binding.

§

ElementArrayBufferBinding = 34_965

Passed to getParameter to get the current element array buffer.

§

LineWidth = 2_849

Passed to getParameter to get the current lineWidth (set by the lineWidth method).

§

AliasedPointSizeRange = 33_901

Passed to getParameter to get the current size of a point drawn with gl.POINTS

§

AliasedLineWidthRange = 33_902

Passed to getParameter to get the range of available widths for a line. Returns a length-2 array with the lo value at 0, and hight at 1.

§

CullFaceMode = 2_885

Passed to getParameter to get the current value of cullFace. Should return FRONT, BACK, or FRONT_AND_BACK

§

FrontFace = 2_886

Passed to getParameter to determine the current value of frontFace. Should return CW or CCW.

§

DepthRange = 2_928

Passed to getParameter to return a length-2 array of floats giving the current depth range.

§

DepthWritemask = 2_930

Passed to getParameter to determine if the depth write mask is enabled.

§

DepthClearValue = 2_931

Passed to getParameter to determine the current depth clear value.

§

DepthFunc = 2_932

Passed to getParameter to get the current depth function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL.

§

StencilClearValue = 2_961

Passed to getParameter to get the value the stencil will be cleared to.

§

StencilFunc = 2_962

Passed to getParameter to get the current stencil function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL.

§

StencilFail = 2_964

Passed to getParameter to get the current stencil fail function. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.

§

StencilPassDepthFail = 2_965

Passed to getParameter to get the current stencil fail function should the depth buffer test fail. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.

§

StencilPassDepthPass = 2_966

Passed to getParameter to get the current stencil fail function should the depth buffer test pass. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.

§

StencilRef = 2_967

Passed to getParameter to get the reference value used for stencil tests.

§

StencilValueMask = 2_963

§

StencilWritemask = 2_968

§

StencilBackFunc = 34_816

§

StencilBackFail = 34_817

§

StencilBackPassDepthFail = 34_818

§

StencilBackPassDepthPass = 34_819

§

StencilBackRef = 36_003

§

StencilBackValueMask = 36_004

§

StencilBackWritemask = 36_005

§

Viewport = 2_978

Returns an Int32Array with four elements for the current viewport dimensions.

§

ScissorBox = 3_088

Returns an Int32Array with four elements for the current scissor box dimensions.

§

ColorClearValue = 3_106

§

ColorWritemask = 3_107

§

UnpackAlignment = 3_317

§

PackAlignment = 3_333

§

MaxTextureSize = 3_379

§

MaxViewportDims = 3_386

§

SubpixelBits = 3_408

§

RedBits = 3_410

§

GreenBits = 3_411

§

BlueBits = 3_412

§

AlphaBits = 3_413

§

DepthBits = 3_414

§

StencilBits = 3_415

§

PolygonOffsetUnits = 10_752

§

PolygonOffsetFactor = 32_824

§

TextureBinding2d = 32_873

§

SampleBuffers = 32_936

§

Samples = 32_937

§

SampleCoverageValue = 32_938

§

SampleCoverageInvert = 32_939

§

CompressedTextureFormats = 34_467

§

Vendor = 7_936

§

Renderer = 7_937

§

Version = 7_938

§

ImplementationColorReadType = 35_738

§

ImplementationColorReadFormat = 35_739

§

BrowserDefaultWebgl = 37_444

§

TextureBindingCubeMap = 34_068

§

MaxCubeMapTextureSize = 34_076

Trait Implementations§

Source§

impl Clone for Parameter

Source§

fn clone(&self) -> Parameter

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Parameter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Parameter> for JsValue

Source§

fn from(value: Parameter) -> Self

Converts to this type from the input type.
Source§

impl FromWasmAbi for Parameter

Source§

type Abi = u32

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl IntoWasmAbi for Parameter

Source§

type Abi = u32

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl OptionFromWasmAbi for Parameter

Source§

fn is_none(val: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for Parameter

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl TryFromJsValue for Parameter

Source§

type Error = JsValue

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

fn try_from_js_value( value: JsValue, ) -> Result<Self, <Parameter as TryFromJsValue>::Error>

Performs the conversion.
Source§

impl VectorFromWasmAbi for Parameter

Source§

type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi

Source§

unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Parameter]>

Source§

impl VectorIntoJsValue for Parameter

Source§

impl VectorIntoWasmAbi for Parameter

Source§

impl WasmDescribe for Parameter

Source§

impl WasmDescribeVector for Parameter

Source§

impl Copy for Parameter

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.