pub struct RectangleClipSubTask {
pub quad_address: GpuBufferAddress,
pub clip_address: GpuBufferAddress,
pub clip_space: ClipSpace,
pub quad_transform_id: GpuTransformId,
pub clip_transform_id: GpuTransformId,
pub quad_flags: QuadFlags,
pub needs_scissor_rect: bool,
pub rounded_rect_fast_path: bool,
}Expand description
A (rounded) rectangle clip applied to a render task using the multiply blend mode on top of the content being clipped.
Fields§
§quad_address: GpuBufferAddressQuad primitive address for this clip.
clip_address: GpuBufferAddressLocation of the (rounded) rectangle parameters.
clip_space: ClipSpaceThe coordinate space of the clip.
- If primitive space, then the clip’s quad primitive is positioned using the transform of the primitive being clipped. clip_transform_id is used by the shader to map from that space to the clip’s local space. This is used when the clip and raster space are indifferent coordinate systems.
- If raster space, then the clip’s quad primitive is positioned directly using rectangles in raster space (no transforms). The clip parameters are still potentially in a different space so clip_transform_id is used to map from raster to clip space (this transform is assumed to be a scale-offset).
quad_transform_id: GpuTransformIdTransform applied to the quad primitive of the clip.
clip_transform_id: GpuTransformIdTransform from the quad primitive’s space to the clip’s local space.
quad_flags: QuadFlags§needs_scissor_rect: bool§rounded_rect_fast_path: boolTrait Implementations§
Source§impl Debug for RectangleClipSubTask
impl Debug for RectangleClipSubTask
Auto Trait Implementations§
impl Freeze for RectangleClipSubTask
impl RefUnwindSafe for RectangleClipSubTask
impl Send for RectangleClipSubTask
impl Sync for RectangleClipSubTask
impl Unpin for RectangleClipSubTask
impl UnsafeUnpin for RectangleClipSubTask
impl UnwindSafe for RectangleClipSubTask
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