Struct bgfx_sys::bgfx_attachment_s
source · [−]#[repr(C)]pub struct bgfx_attachment_s {
pub access: bgfx_access_t,
pub handle: bgfx_texture_handle_t,
pub mip: u16,
pub layer: u16,
pub numLayers: u16,
pub resolve: u8,
}
Expand description
Frame buffer texture attachment info.
Fields
access: bgfx_access_t
handle: bgfx_texture_handle_t
Attachment access. See Access::Enum
.
mip: u16
Render target texture handle.
layer: u16
Mip level.
numLayers: u16
Cubemap side or depth layer/slice to use.
resolve: u8
Number of texture layer/slice(s) in array to use.
Trait Implementations
sourceimpl Clone for bgfx_attachment_s
impl Clone for bgfx_attachment_s
sourcefn clone(&self) -> bgfx_attachment_s
fn clone(&self) -> bgfx_attachment_s
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for bgfx_attachment_s
impl Debug for bgfx_attachment_s
impl Copy for bgfx_attachment_s
Auto Trait Implementations
impl RefUnwindSafe for bgfx_attachment_s
impl Send for bgfx_attachment_s
impl Sync for bgfx_attachment_s
impl Unpin for bgfx_attachment_s
impl UnwindSafe for bgfx_attachment_s
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more