Struct bgfx_rs::static_lib::Attachment
source · #[repr(C)]pub struct Attachment {
pub access: Access,
pub handle: Texture,
pub mip: u16,
pub layer: u16,
pub num_layers: u16,
pub resolve: u8,
}
Expand description
Frame buffer texture attachment info.
Fields§
§access: Access
Attachment access. See Access.
handle: Texture
Render target texture handle.
mip: u16
Mip level.
layer: u16
Cubemap side or depth layer/slice to use.
num_layers: u16
Number of texture layer/slice(s) in array to use.
resolve: u8
Resolve flags. See: ResolveFlags
Implementations§
source§impl Attachment
impl Attachment
pub fn new() -> 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