pub struct ShadowGpuState<'a> {
pub device: &'a Device,
pub queue: &'a Queue,
pub target_view: &'a TextureView,
pub resolve_target: Option<&'a TextureView>,
pub globals_buffer: &'a Buffer,
pub globals_bind_group: &'a BindGroup,
pub viewport_w: u32,
pub viewport_h: u32,
}Expand description
GPU device/queue state needed for shadow rendering.
Fields§
§device: &'a DeviceThe logical GPU device.
queue: &'a QueueThe command queue.
target_view: &'a TextureViewThe main frame colour view (shadow composites here). Under MSAA this is the MSAA multisample view (the render target).
resolve_target: Option<&'a TextureView>The MSAA resolve target for the composite pass, or None when no MSAA.
Under MSAA this is the single-sample color_view; under no MSAA it is
None and target_view is the direct render target.
globals_buffer: &'a BufferThe per-frame viewport globals buffer.
globals_bind_group: &'a BindGroupThe bind group for the viewport globals (group 0, solid pipeline).
viewport_w: u32Viewport width in pixels.
viewport_h: u32Viewport height in pixels.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShadowGpuState<'a>
impl<'a> !UnwindSafe for ShadowGpuState<'a>
impl<'a> Freeze for ShadowGpuState<'a>
impl<'a> Send for ShadowGpuState<'a>
impl<'a> Sync for ShadowGpuState<'a>
impl<'a> Unpin for ShadowGpuState<'a>
impl<'a> UnsafeUnpin for ShadowGpuState<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more