Enum webrender::render_task::RenderTaskKind

source ·
pub enum RenderTaskKind {
Show 21 variants Image(ImageRequest), 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(ImageRequest)

§

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

source

pub fn is_a_rendering_operation(&self) -> bool

source

pub fn can_use_shared_surface(&self) -> bool

Whether this task can be allocated on a shared render target surface

source

pub fn should_advance_pass(&self) -> bool

source

pub fn as_str(&self) -> &'static str

source

pub fn target_kind(&self) -> RenderTargetKind

source

pub fn new_tile_composite( sub_rect_offset: DeviceIntVector2D, scissor_rect: DeviceIntRect, valid_rect: DeviceIntRect, clear_color: ColorF, ) -> Self

source

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, ) -> Self

source

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

source

pub fn new_readback(readback_origin: Option<DevicePoint>) -> Self

source

pub fn new_line_decoration( style: LineStyle, orientation: LineOrientation, wavy_line_thickness: f32, local_size: LayoutSize, ) -> Self

source

pub fn new_border_segment(instances: Vec<BorderInstance>) -> Self

source

pub fn new_rounded_rect_mask( local_pos: LayoutPoint, clip_data: ClipData, device_pixel_scale: DevicePixelScale, fb_config: &FrameBuilderConfig, ) -> Self

source

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

source

pub fn write_task_data(&self, target_rect: DeviceIntRect) -> RenderTaskData

source

pub fn write_gpu_blocks(&mut self, gpu_cache: &mut GpuCache)

Trait Implementations§

source§

impl Serialize for RenderTaskKind

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.