pub struct ViewportGpuPacket {
pub(crate) uniforms_buffer: WgpuBuffer<ViewportUniform>,
pub(crate) uniforms_bind_group: ViewportBindGroup,
}Fields§
§uniforms_buffer: WgpuBuffer<ViewportUniform>§uniforms_bind_group: ViewportBindGroupTrait Implementations§
Source§impl RenderResource for ViewportGpuPacket
impl RenderResource for ViewportGpuPacket
Source§type Data = ViewportUniform
type Data = ViewportUniform
The type used for
RenderResource::init and RenderResource::update.Source§fn init(ctx: &WgpuContext, data: &Self::Data) -> Self
fn init(ctx: &WgpuContext, data: &Self::Data) -> Self
Initialize a RenderResource using
RenderResource::DataSource§fn update(&mut self, ctx: &WgpuContext, data: &Self::Data)
fn update(&mut self, ctx: &WgpuContext, data: &Self::Data)
update a RenderResource using
RenderResource::Dataimpl RenderPacketMark for ViewportGpuPacket
Auto Trait Implementations§
impl Freeze for ViewportGpuPacket
impl !RefUnwindSafe for ViewportGpuPacket
impl Send for ViewportGpuPacket
impl Sync for ViewportGpuPacket
impl Unpin for ViewportGpuPacket
impl !UnwindSafe for ViewportGpuPacket
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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