pub(crate) struct PathClipPipeline {
pipeline: RenderPipeline,
bind_group_layout: BindGroupLayout,
sampler: Sampler,
}Fields§
§pipeline: RenderPipeline§bind_group_layout: BindGroupLayout§sampler: SamplerImplementations§
Source§impl PathClipPipeline
impl PathClipPipeline
pub(crate) fn new(app: &Application, output_format: TextureFormat) -> Self
Sourcepub(crate) fn apply(
&self,
app: &Application,
points: &[Vec2],
invert: bool,
foreground: &RenderTexture,
output: &RenderTexture,
)
pub(crate) fn apply( &self, app: &Application, points: &[Vec2], invert: bool, foreground: &RenderTexture, output: &RenderTexture, )
Sample foreground and write foreground × point_in_polygon
into output. points is the closed polygon in NDC; up to
MAX_PATH_POINTS entries are honored, the rest are ignored.
Auto Trait Implementations§
impl Freeze for PathClipPipeline
impl !RefUnwindSafe for PathClipPipeline
impl Send for PathClipPipeline
impl Sync for PathClipPipeline
impl Unpin for PathClipPipeline
impl UnsafeUnpin for PathClipPipeline
impl !UnwindSafe for PathClipPipeline
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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