pub enum TextureParameter {
Show 13 variants
MagFilter = 10_240,
MinFilter = 10_241,
WrapS = 10_242,
WrapT = 10_243,
BaseLevel = 33_084,
CompareFunc = 34_893,
CompareMode = 34_892,
ImmutableFormat = 37_167,
ImmutableLevels = 33_503,
MaxLevel = 33_085,
MaxLod = 33_083,
MinLod = 33_082,
WrapR = 32_882,
}
Expand description
WebGLRenderingContext.texParameterfi “pname” parameter
Variants§
MagFilter = 10_240
MinFilter = 10_241
WrapS = 10_242
WrapT = 10_243
BaseLevel = 33_084
Texture mipmap level
CompareFunc = 34_893
Comparison function
CompareMode = 34_892
Texture comparison mode
ImmutableFormat = 37_167
Immutability of the texture format and size
ImmutableLevels = 33_503
MaxLevel = 33_085
Maximum texture mipmap array level
MaxLod = 33_083
Texture maximum level-of-detail value
MinLod = 33_082
Texture minimum level-of-detail value
WrapR = 32_882
gl.TEXTURE_WRAP_R Wrapping function for texture coordinate r
Trait Implementations§
Source§impl Clone for TextureParameter
impl Clone for TextureParameter
Source§fn clone(&self) -> TextureParameter
fn clone(&self) -> TextureParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextureParameter
impl Debug for TextureParameter
Source§impl From<TextureParameter> for JsValue
impl From<TextureParameter> for JsValue
Source§fn from(value: TextureParameter) -> Self
fn from(value: TextureParameter) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TextureParameter
impl FromWasmAbi for TextureParameter
Source§impl IntoWasmAbi for TextureParameter
impl IntoWasmAbi for TextureParameter
Source§impl OptionFromWasmAbi for TextureParameter
impl OptionFromWasmAbi for TextureParameter
Source§impl OptionIntoWasmAbi for TextureParameter
impl OptionIntoWasmAbi for TextureParameter
Source§impl TryFromJsValue for TextureParameter
impl TryFromJsValue for TextureParameter
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <TextureParameter as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <TextureParameter as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for TextureParameter
impl VectorFromWasmAbi for TextureParameter
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TextureParameter]>
Source§impl VectorIntoJsValue for TextureParameter
impl VectorIntoJsValue for TextureParameter
fn vector_into_jsvalue(vector: Box<[TextureParameter]>) -> JsValue
Source§impl VectorIntoWasmAbi for TextureParameter
impl VectorIntoWasmAbi for TextureParameter
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TextureParameter]>) -> Self::Abi
Source§impl WasmDescribeVector for TextureParameter
impl WasmDescribeVector for TextureParameter
impl Copy for TextureParameter
Auto Trait Implementations§
impl Freeze for TextureParameter
impl RefUnwindSafe for TextureParameter
impl Send for TextureParameter
impl Sync for TextureParameter
impl Unpin for TextureParameter
impl UnwindSafe for TextureParameter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
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
.