pub struct GpuSeriesCtx<'a> {
pub device: &'a Device,
pub queue: &'a Queue,
pub format: TextureFormat,
pub viewport: [f32; 2],
pub frame: &'a Frame,
}Expand description
What a GpuSeries gets to prepare a draw.
Fields§
§device: &'a DeviceThe renderer’s device.
queue: &'a QueueThe renderer’s queue. Compute work may be submitted here in
GpuSeries::prepare; it runs before the frame’s render passes.
format: TextureFormatFormat of the color target the draw goes into.
viewport: [f32; 2]Target size in physical pixels (for pixel-to-clip-space math).
frame: &'a FrameThe frame, e.g. for frame.styles[draw.style].
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GpuSeriesCtx<'a>
impl<'a> !UnwindSafe for GpuSeriesCtx<'a>
impl<'a> Forget for GpuSeriesCtx<'a>
impl<'a> Freeze for GpuSeriesCtx<'a>
impl<'a> Move for GpuSeriesCtx<'a>
impl<'a> Send for GpuSeriesCtx<'a>
impl<'a> Sync for GpuSeriesCtx<'a>
impl<'a> Unpin for GpuSeriesCtx<'a>
impl<'a> UnsafeUnpin for GpuSeriesCtx<'a>
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