pub struct SourceView {
pub view: TextureView,
pub size: [u32; 2],
pub color_space: SourceColorSpace,
}Expand description
The backdrop source: a sampleable view plus the two things a wgpu::TextureView cannot tell
the backend on its own — the texture’s pixel size and its color space. The host constructs
one per frame from its offscreen intermediate; it owns the view for the call’s duration.
Fields§
§view: TextureViewA sampleable view of the host’s intermediate texture.
size: [u32; 2]The intermediate’s [width, height] in physical pixels.
color_space: SourceColorSpaceWhether the intermediate holds gamma-encoded or linear values.
Auto Trait Implementations§
impl !RefUnwindSafe for SourceView
impl !UnwindSafe for SourceView
impl Freeze for SourceView
impl Send for SourceView
impl Sync for SourceView
impl Unpin for SourceView
impl UnsafeUnpin for SourceView
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