pub enum FramebufferKind {
Framebuffer = 36_160,
DrawFramebuffer = 36_009,
ReadFramebuffer = 36_008,
}
Expand description
Constants passed to WebGLRenderingContext.bindFramebuffer() and other framebuffer methods
Variants§
Framebuffer = 36_160
Collection buffer data storage of color, alpha, depth and stencil buffers used to render an image.
DrawFramebuffer = 36_009
Equivalent to Framebuffer
. Used as a destination for drawing, rendering, clearing, and writing operations.
ReadFramebuffer = 36_008
Used as a source for reading operations.
Trait Implementations§
Source§impl Clone for FramebufferKind
impl Clone for FramebufferKind
Source§fn clone(&self) -> FramebufferKind
fn clone(&self) -> FramebufferKind
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 FramebufferKind
impl Debug for FramebufferKind
Source§impl From<FramebufferKind> for JsValue
impl From<FramebufferKind> for JsValue
Source§fn from(value: FramebufferKind) -> Self
fn from(value: FramebufferKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for FramebufferKind
impl FromWasmAbi for FramebufferKind
Source§impl IntoWasmAbi for FramebufferKind
impl IntoWasmAbi for FramebufferKind
Source§impl OptionFromWasmAbi for FramebufferKind
impl OptionFromWasmAbi for FramebufferKind
Source§impl OptionIntoWasmAbi for FramebufferKind
impl OptionIntoWasmAbi for FramebufferKind
Source§impl TryFromJsValue for FramebufferKind
impl TryFromJsValue for FramebufferKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <FramebufferKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <FramebufferKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for FramebufferKind
impl VectorFromWasmAbi for FramebufferKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[FramebufferKind]>
Source§impl VectorIntoJsValue for FramebufferKind
impl VectorIntoJsValue for FramebufferKind
fn vector_into_jsvalue(vector: Box<[FramebufferKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for FramebufferKind
impl VectorIntoWasmAbi for FramebufferKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[FramebufferKind]>) -> Self::Abi
Source§impl WasmDescribeVector for FramebufferKind
impl WasmDescribeVector for FramebufferKind
impl Copy for FramebufferKind
Auto Trait Implementations§
impl Freeze for FramebufferKind
impl RefUnwindSafe for FramebufferKind
impl Send for FramebufferKind
impl Sync for FramebufferKind
impl Unpin for FramebufferKind
impl UnwindSafe for FramebufferKind
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
.