pub struct IconGpu {
pub texture: Texture,
pub view: TextureView,
pub sampler: Sampler,
pub bind_group: BindGroup,
pub size_px: u32,
}Expand description
GPU texture + bind group for one cached icon.
§Examples
use ailloli_ui_render_wgpu::icons::IconGpu;
let _: usize = std::mem::size_of::<IconGpu>();Fields§
§texture: TextureOwned RGBA8 texture keeping the view alive.
view: TextureViewFull texture view bound for sampling.
sampler: SamplerNearest-neighbor sampler used by icon rendering.
bind_group: BindGroupTexture-and-sampler bind group for the textured pipeline.
size_px: u32Actual square side length in physical pixels; at least eight.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IconGpu
impl !RefUnwindSafe for IconGpu
impl Send for IconGpu
impl Sync for IconGpu
impl Unpin for IconGpu
impl !UnwindSafe for IconGpu
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