pub struct BufferPush<'a, C: GpuContext + ?Sized> {
pub device: &'a C::Device,
pub queue: &'a C::Queue,
pub vertex_buffer: &'a C::VertexBuffer,
pub current_texture: &'a C::Texture,
pub mask_texture: &'a C::Texture,
pub transform: &'a Affine,
pub viewport_size: (u32, u32),
pub clip: Option<Rect>,
}Expand description
The data necessary to push buffer data to the GPU.
Fields§
§device: &'a C::DeviceThe device to render onto.
queue: &'a C::QueueThe queue to push the operation into.
vertex_buffer: &'a C::VertexBufferThe vertex buffer to use when pushing data.
current_texture: &'a C::TextureThe texture to use as the background.
mask_texture: &'a C::TextureThe texture to use as the mask.
transform: &'a AffineThe transformation to apply to the vertices.
viewport_size: (u32, u32)The size of the viewport.
clip: Option<Rect>The rectangle to clip vertices to.
This is sometimes known as the “scissor rect”.
Auto Trait Implementations§
impl<'a, C> Freeze for BufferPush<'a, C>where
C: ?Sized,
impl<'a, C> RefUnwindSafe for BufferPush<'a, C>where
<C as GpuContext>::Device: RefUnwindSafe,
<C as GpuContext>::Queue: RefUnwindSafe,
<C as GpuContext>::VertexBuffer: RefUnwindSafe,
<C as GpuContext>::Texture: RefUnwindSafe,
C: ?Sized,
impl<'a, C> Send for BufferPush<'a, C>where
<C as GpuContext>::Device: Sync,
<C as GpuContext>::Queue: Sync,
<C as GpuContext>::VertexBuffer: Sync,
<C as GpuContext>::Texture: Sync,
C: ?Sized,
impl<'a, C> Sync for BufferPush<'a, C>where
<C as GpuContext>::Device: Sync,
<C as GpuContext>::Queue: Sync,
<C as GpuContext>::VertexBuffer: Sync,
<C as GpuContext>::Texture: Sync,
C: ?Sized,
impl<'a, C> Unpin for BufferPush<'a, C>where
C: ?Sized,
impl<'a, C> UnsafeUnpin for BufferPush<'a, C>where
C: ?Sized,
impl<'a, C> UnwindSafe for BufferPush<'a, C>where
<C as GpuContext>::Device: RefUnwindSafe,
<C as GpuContext>::Queue: RefUnwindSafe,
<C as GpuContext>::VertexBuffer: RefUnwindSafe,
<C as GpuContext>::Texture: RefUnwindSafe,
C: ?Sized,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.