pub enum Layout {
Undefined,
ColorAttachment,
DepthAttachment,
ShaderRead,
CopyDst,
CopySrc,
Present,
}Expand description
Layout-Zustand einer Ressource — backend-neutral formuliert;
re-wgpu bildet das auf wgpu::TextureUsage/Load-Op abbilden.
Variants§
Undefined
Inhalt undefiniert — erster Zugriff muss schreiben/klaren.
ColorAttachment
Farb-Attachment (Color-Target).
DepthAttachment
Tiefen-Attachment.
ShaderRead
Als Shader-Resource lesbar.
CopyDst
Ziel eines Kopiers.
CopySrc
Quelle eines Kopiers.
Present
Direkt auf dem Swapchain sichtbar (letzter Pass des Frames).
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
Source§impl Ord for Layout
impl Ord for Layout
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Layout
impl PartialOrd for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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