pub enum RenderTaskKind {
Show 21 variants
    Image(ImageRequestTask),
    Cached(CachedTask),
    Picture(PictureTask),
    CacheMask(CacheMaskTask),
    ClipRegion(ClipRegionTask),
    VerticalBlur(BlurTask),
    HorizontalBlur(BlurTask),
    Readback(ReadbackTask),
    Scaling(ScalingTask),
    Blit(BlitTask),
    Border(BorderTask),
    LineDecoration(LineDecorationTask),
    FastLinearGradient(FastLinearGradientTask),
    LinearGradient(LinearGradientTask),
    RadialGradient(RadialGradientTask),
    ConicGradient(ConicGradientTask),
    SvgFilter(SvgFilterTask),
    SVGFENode(SVGFEFilterTask),
    TileComposite(TileCompositeTask),
    Prim(PrimTask),
    Empty(EmptyTask),
}Variants§
Image(ImageRequestTask)
Cached(CachedTask)
Picture(PictureTask)
CacheMask(CacheMaskTask)
ClipRegion(ClipRegionTask)
VerticalBlur(BlurTask)
HorizontalBlur(BlurTask)
Readback(ReadbackTask)
Scaling(ScalingTask)
Blit(BlitTask)
Border(BorderTask)
LineDecoration(LineDecorationTask)
FastLinearGradient(FastLinearGradientTask)
LinearGradient(LinearGradientTask)
RadialGradient(RadialGradientTask)
ConicGradient(ConicGradientTask)
SvgFilter(SvgFilterTask)
SVGFENode(SVGFEFilterTask)
TileComposite(TileCompositeTask)
Prim(PrimTask)
Empty(EmptyTask)
Implementations§
Source§impl RenderTaskKind
 
impl RenderTaskKind
pub fn is_a_rendering_operation(&self) -> bool
Whether this task can be allocated on a shared render target surface
pub fn should_advance_pass(&self) -> bool
pub fn as_str(&self) -> &'static str
pub fn target_kind(&self) -> RenderTargetKind
pub fn new_tile_composite( sub_rect_offset: DeviceIntVector2D, scissor_rect: DeviceIntRect, valid_rect: DeviceIntRect, clear_color: ColorF, ) -> Self
pub fn new_picture( size: DeviceIntSize, needs_scissor_rect: bool, content_origin: DevicePoint, surface_spatial_node_index: SpatialNodeIndex, raster_spatial_node_index: SpatialNodeIndex, device_pixel_scale: DevicePixelScale, scissor_rect: Option<DeviceIntRect>, valid_rect: Option<DeviceIntRect>, clear_color: Option<ColorF>, cmd_buffer_index: CommandBufferIndex, can_use_shared_surface: bool, content_size: Option<DeviceIntSize>, ) -> Self
pub fn new_prim( pattern: PatternKind, pattern_input: PatternShaderInput, raster_spatial_node_index: SpatialNodeIndex, device_pixel_scale: DevicePixelScale, content_origin: DevicePoint, prim_address_f: GpuBufferAddress, transform_id: TransformPaletteId, edge_flags: EdgeAaSegmentMask, quad_flags: QuadFlags, prim_needs_scissor_rect: bool, texture_input: RenderTaskId, ) -> Self
pub fn new_readback(readback_origin: Option<DevicePoint>) -> Self
pub fn new_line_decoration( style: LineStyle, orientation: LineOrientation, wavy_line_thickness: f32, local_size: LayoutSize, ) -> Self
pub fn new_border_segment(instances: Vec<BorderInstance>) -> Self
pub fn new_rounded_rect_mask( local_pos: LayoutPoint, clip_data: ClipData, device_pixel_scale: DevicePixelScale, fb_config: &FrameBuilderConfig, ) -> Self
pub fn new_mask( outer_rect: DeviceIntRect, clip_node_range: ClipNodeRange, root_spatial_node_index: SpatialNodeIndex, clip_store: &mut ClipStore, gpu_cache: &mut GpuCache, gpu_buffer_builder: &mut GpuBufferBuilderImpl<GpuBufferBlockF>, resource_cache: &mut ResourceCache, rg_builder: &mut RenderTaskGraphBuilder, clip_data_store: &mut DataStore<ClipIntern>, device_pixel_scale: DevicePixelScale, fb_config: &FrameBuilderConfig, surface_builder: &mut SurfaceBuilder, ) -> RenderTaskId
pub fn write_task_data(&self, target_rect: DeviceIntRect) -> RenderTaskData
pub fn write_gpu_blocks(&mut self, gpu_cache: &mut GpuCache)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderTaskKind
impl RefUnwindSafe for RenderTaskKind
impl Send for RenderTaskKind
impl Sync for RenderTaskKind
impl Unpin for RenderTaskKind
impl UnwindSafe for RenderTaskKind
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