Struct webrender::render_target::AlphaRenderTarget
source · pub struct AlphaRenderTarget {
pub clip_batcher: ClipBatcher,
pub vertical_blurs: FastHashMap<TextureSource, Vec<BlurInstance>>,
pub horizontal_blurs: FastHashMap<TextureSource, Vec<BlurInstance>>,
pub scalings: FastHashMap<TextureSource, Vec<ScalingInstance>>,
pub zero_clears: Vec<RenderTaskId>,
pub one_clears: Vec<RenderTaskId>,
pub texture_id: CacheTextureId,
pub clip_masks: ClipMaskInstanceList,
}
Expand description
Contains the work (in the form of instance arrays) needed to fill an alpha output surface (R8).
See RenderTarget
.
Fields§
§clip_batcher: ClipBatcher
§vertical_blurs: FastHashMap<TextureSource, Vec<BlurInstance>>
§horizontal_blurs: FastHashMap<TextureSource, Vec<BlurInstance>>
§scalings: FastHashMap<TextureSource, Vec<ScalingInstance>>
§zero_clears: Vec<RenderTaskId>
§one_clears: Vec<RenderTaskId>
§texture_id: CacheTextureId
§clip_masks: ClipMaskInstanceList
Trait Implementations§
source§impl RenderTarget for AlphaRenderTarget
impl RenderTarget for AlphaRenderTarget
source§fn new(
texture_id: CacheTextureId,
_: DeviceIntSize,
gpu_supports_fast_clears: bool,
_: DeviceIntRect,
) -> Self
fn new( texture_id: CacheTextureId, _: DeviceIntSize, gpu_supports_fast_clears: bool, _: DeviceIntRect, ) -> Self
Creates a new RenderTarget of the given type.
fn texture_id(&self) -> CacheTextureId
source§fn add_task(
&mut self,
task_id: RenderTaskId,
ctx: &RenderTargetContext<'_, '_>,
gpu_cache: &mut GpuCache,
gpu_buffer_builder: &mut GpuBufferBuilder,
render_tasks: &RenderTaskGraph,
clip_store: &ClipStore,
transforms: &mut TransformPalette,
)
fn add_task( &mut self, task_id: RenderTaskId, ctx: &RenderTargetContext<'_, '_>, gpu_cache: &mut GpuCache, gpu_buffer_builder: &mut GpuBufferBuilder, render_tasks: &RenderTaskGraph, clip_store: &ClipStore, transforms: &mut TransformPalette, )
Associates a
RenderTask
with this target. That task must be assigned
to a region returned by invoking allocate()
on this target. Read morefn needs_depth(&self) -> bool
source§fn build(
&mut self,
_ctx: &mut RenderTargetContext<'_, '_>,
_gpu_cache: &mut GpuCache,
_render_tasks: &RenderTaskGraph,
_prim_headers: &mut PrimitiveHeaders,
_transforms: &mut TransformPalette,
_z_generator: &mut ZBufferIdGenerator,
_prim_instances: &[PrimitiveInstance],
_cmd_buffers: &CommandBufferList,
_gpu_buffer_builder: &mut GpuBufferBuilder,
)
fn build( &mut self, _ctx: &mut RenderTargetContext<'_, '_>, _gpu_cache: &mut GpuCache, _render_tasks: &RenderTaskGraph, _prim_headers: &mut PrimitiveHeaders, _transforms: &mut TransformPalette, _z_generator: &mut ZBufferIdGenerator, _prim_instances: &[PrimitiveInstance], _cmd_buffers: &CommandBufferList, _gpu_buffer_builder: &mut GpuBufferBuilder, )
Optional hook to provide additional processing for the target at the
end of the build phase.
Auto Trait Implementations§
impl Freeze for AlphaRenderTarget
impl RefUnwindSafe for AlphaRenderTarget
impl Send for AlphaRenderTarget
impl Sync for AlphaRenderTarget
impl Unpin for AlphaRenderTarget
impl UnwindSafe for AlphaRenderTarget
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