Struct webrender::renderer::gpu_buffer::GpuBufferBlockF
source · pub struct GpuBufferBlockF {
data: [f32; 4],
}
Expand description
A single texel in RGBAF32 texture - 16 bytes.
Fields§
§data: [f32; 4]
Implementations§
Trait Implementations§
source§impl Clone for GpuBufferBlockF
impl Clone for GpuBufferBlockF
source§fn clone(&self) -> GpuBufferBlockF
fn clone(&self) -> GpuBufferBlockF
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GpuBufferBlockF
impl Debug for GpuBufferBlockF
source§impl Default for GpuBufferBlockF
impl Default for GpuBufferBlockF
source§impl From<Box2D<i32, DevicePixel>> for GpuBufferBlockF
impl From<Box2D<i32, DevicePixel>> for GpuBufferBlockF
source§fn from(rect: DeviceIntRect) -> Self
fn from(rect: DeviceIntRect) -> Self
Converts to this type from the input type.
source§impl Into<GpuBufferBlockF> for [f32; 4]
impl Into<GpuBufferBlockF> for [f32; 4]
source§fn into(self) -> GpuBufferBlockF
fn into(self) -> GpuBufferBlockF
Converts this type into the (usually inferred) input type.
source§impl Into<GpuBufferBlockF> for DeviceRect
impl Into<GpuBufferBlockF> for DeviceRect
source§fn into(self) -> GpuBufferBlockF
fn into(self) -> GpuBufferBlockF
Converts this type into the (usually inferred) input type.
source§impl Into<GpuBufferBlockF> for LayoutRect
impl Into<GpuBufferBlockF> for LayoutRect
source§fn into(self) -> GpuBufferBlockF
fn into(self) -> GpuBufferBlockF
Converts this type into the (usually inferred) input type.
source§impl Into<GpuBufferBlockF> for PictureRect
impl Into<GpuBufferBlockF> for PictureRect
source§fn into(self) -> GpuBufferBlockF
fn into(self) -> GpuBufferBlockF
Converts this type into the (usually inferred) input type.
source§impl Into<GpuBufferBlockF> for PremultipliedColorF
impl Into<GpuBufferBlockF> for PremultipliedColorF
source§fn into(self) -> GpuBufferBlockF
fn into(self) -> GpuBufferBlockF
Converts this type into the (usually inferred) input type.
source§impl Into<GpuBufferBlockF> for ScaleOffset
impl Into<GpuBufferBlockF> for ScaleOffset
source§fn into(self) -> GpuBufferBlockF
fn into(self) -> GpuBufferBlockF
Converts this type into the (usually inferred) input type.
source§impl MallocSizeOf for GpuBufferBlockF
impl MallocSizeOf for GpuBufferBlockF
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Serialize for GpuBufferBlockF
impl Serialize for GpuBufferBlockF
source§impl Texel for GpuBufferBlockF
impl Texel for GpuBufferBlockF
fn image_format() -> ImageFormat
impl Copy for GpuBufferBlockF
Auto Trait Implementations§
impl Freeze for GpuBufferBlockF
impl RefUnwindSafe for GpuBufferBlockF
impl Send for GpuBufferBlockF
impl Sync for GpuBufferBlockF
impl Unpin for GpuBufferBlockF
impl UnwindSafe for GpuBufferBlockF
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
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