Struct webrender::renderer::gpu_cache::GpuCacheTexture
source · pub struct GpuCacheTexture {
texture: Option<Texture>,
bus: GpuCacheBus,
}
Expand description
The device-specific representation of the cache texture in gpu_cache.rs
Fields§
§texture: Option<Texture>
§bus: GpuCacheBus
Implementations§
source§impl GpuCacheTexture
impl GpuCacheTexture
sourcefn ensure_texture(&mut self, device: &mut Device, height: i32)
fn ensure_texture(&mut self, device: &mut Device, height: i32)
Ensures that we have an appropriately-sized texture.
pub fn new( device: &mut Device, use_scatter: bool, ) -> Result<Self, RendererError>
pub fn deinit(self, device: &mut Device)
pub fn get_height(&self) -> i32
pub fn get_texture(&self) -> &Texture
fn prepare_for_updates( &mut self, device: &mut Device, total_block_count: usize, max_height: i32, )
pub fn invalidate(&mut self)
fn update(&mut self, device: &mut Device, updates: &GpuCacheUpdateList)
fn flush(&mut self, device: &mut Device, pbo_pool: &mut UploadPBOPool) -> usize
pub fn report_memory_to( &self, report: &mut MemoryReport, size_op_funs: &MallocSizeOfOps, )
pub fn gpu_size_in_bytes(&self) -> usize
Auto Trait Implementations§
impl !Freeze for GpuCacheTexture
impl !RefUnwindSafe for GpuCacheTexture
impl !Send for GpuCacheTexture
impl !Sync for GpuCacheTexture
impl Unpin for GpuCacheTexture
impl UnwindSafe for GpuCacheTexture
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