pub enum Attachment {
Show 19 variants
ColorAttachment0 = 36_064,
DepthAttachment = 36_096,
StencilAttachment = 36_128,
DepthStencilAttachment = 33_306,
ColorAttachment1 = 36_065,
ColorAttachment2 = 36_066,
ColorAttachment3 = 36_067,
ColorAttachment4 = 36_068,
ColorAttachment5 = 36_069,
ColorAttachment6 = 36_070,
ColorAttachment7 = 36_071,
ColorAttachment8 = 36_072,
ColorAttachment9 = 36_073,
ColorAttachment10 = 36_074,
ColorAttachment11 = 36_075,
ColorAttachment12 = 36_076,
ColorAttachment13 = 36_077,
ColorAttachment14 = 36_078,
ColorAttachment15 = 36_079,
}
Expand description
Constants passed to WebGLRenderingContext.framebufferRenderbuffer()
Variants§
ColorAttachment0 = 36_064
color buffer.
DepthAttachment = 36_096
depth buffer.
StencilAttachment = 36_128
stencil buffer.
DepthStencilAttachment = 33_306
depth and stencil buffer.
ColorAttachment1 = 36_065
ColorAttachment2 = 36_066
ColorAttachment3 = 36_067
ColorAttachment4 = 36_068
ColorAttachment5 = 36_069
ColorAttachment6 = 36_070
ColorAttachment7 = 36_071
ColorAttachment8 = 36_072
ColorAttachment9 = 36_073
ColorAttachment10 = 36_074
ColorAttachment11 = 36_075
ColorAttachment12 = 36_076
ColorAttachment13 = 36_077
ColorAttachment14 = 36_078
ColorAttachment15 = 36_079
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 Attachment
impl Debug for Attachment
Source§impl From<Attachment> for JsValue
impl From<Attachment> for JsValue
Source§fn from(value: Attachment) -> Self
fn from(value: Attachment) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Attachment
impl FromWasmAbi for Attachment
Source§impl IntoWasmAbi for Attachment
impl IntoWasmAbi for Attachment
Source§impl OptionFromWasmAbi for Attachment
impl OptionFromWasmAbi for Attachment
Source§impl OptionIntoWasmAbi for Attachment
impl OptionIntoWasmAbi for Attachment
Source§impl TryFromJsValue for Attachment
impl TryFromJsValue for Attachment
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <Attachment as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <Attachment as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for Attachment
impl VectorFromWasmAbi for Attachment
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Attachment]>
Source§impl VectorIntoJsValue for Attachment
impl VectorIntoJsValue for Attachment
fn vector_into_jsvalue(vector: Box<[Attachment]>) -> JsValue
Source§impl VectorIntoWasmAbi for Attachment
impl VectorIntoWasmAbi for Attachment
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Attachment]>) -> Self::Abi
Source§impl WasmDescribeVector for Attachment
impl WasmDescribeVector for Attachment
impl Copy for Attachment
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
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
.