pub enum TextureKind {
Texture2d = 3_553,
TextureCubeMap = 34_067,
Texture3d = 32_879,
Texture2dArray = 35_866,
}
Expand description
WebGLRenderingContext.texParameterfi or WebGLRenderingContext.bindTexture() “target” parameter
Variants§
Texture2d = 3_553
TextureCubeMap = 34_067
Texture3d = 32_879
A three-dimensional texture.
Texture2dArray = 35_866
A two-dimensional array texture.
Trait Implementations§
Source§impl Clone for TextureKind
impl Clone for TextureKind
Source§fn clone(&self) -> TextureKind
fn clone(&self) -> TextureKind
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 TextureKind
impl Debug for TextureKind
Source§impl From<TextureKind> for JsValue
impl From<TextureKind> for JsValue
Source§fn from(value: TextureKind) -> Self
fn from(value: TextureKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TextureKind
impl FromWasmAbi for TextureKind
Source§impl IntoWasmAbi for TextureKind
impl IntoWasmAbi for TextureKind
Source§impl OptionFromWasmAbi for TextureKind
impl OptionFromWasmAbi for TextureKind
Source§impl OptionIntoWasmAbi for TextureKind
impl OptionIntoWasmAbi for TextureKind
Source§impl TryFromJsValue for TextureKind
impl TryFromJsValue for TextureKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <TextureKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <TextureKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for TextureKind
impl VectorFromWasmAbi for TextureKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TextureKind]>
Source§impl VectorIntoJsValue for TextureKind
impl VectorIntoJsValue for TextureKind
fn vector_into_jsvalue(vector: Box<[TextureKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for TextureKind
impl VectorIntoWasmAbi for TextureKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TextureKind]>) -> Self::Abi
Source§impl WasmDescribeVector for TextureKind
impl WasmDescribeVector for TextureKind
impl Copy for TextureKind
Auto Trait Implementations§
impl Freeze for TextureKind
impl RefUnwindSafe for TextureKind
impl Send for TextureKind
impl Sync for TextureKind
impl Unpin for TextureKind
impl UnwindSafe for TextureKind
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
.