pub enum VTFormat {
RGBA,
BGRA,
YUV420P,
NV12,
}Expand description
Logical pixel format for conversion and scaling.
Variants§
Implementations§
Source§impl VTFormat
impl VTFormat
pub fn all() -> &'static [Self]
Sourcepub fn plane_count(self) -> usize
pub fn plane_count(self) -> usize
Number of GPU texture planes used internally (NV12/YUV420P are multi-plane).
Sourcepub fn plane_formats(self) -> &'static [TextureFormat]
pub fn plane_formats(self) -> &'static [TextureFormat]
WGSL storage/texture view formats per plane (split-plane layout).
pub fn shader_name(self) -> &'static str
Trait Implementations§
impl Copy for VTFormat
impl Eq for VTFormat
impl StructuralPartialEq for VTFormat
Auto Trait Implementations§
impl Freeze for VTFormat
impl RefUnwindSafe for VTFormat
impl Send for VTFormat
impl Sync for VTFormat
impl Unpin for VTFormat
impl UnsafeUnpin for VTFormat
impl UnwindSafe for VTFormat
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.