pub struct AccessGraph<'a> { /* private fields */ }Expand description
A raw GPU graph whose edges are inferred from declared buffer access.
Implementations§
Source§impl<'a> AccessGraph<'a>
impl<'a> AccessGraph<'a>
Sourcepub fn fill(&mut self, destination: View<'a>, pattern: u8) -> Result<Node>
pub fn fill(&mut self, destination: View<'a>, pattern: u8) -> Result<Node>
Record a byte-pattern fill.
Sourcepub fn copy(&mut self, destination: View<'a>, source: View<'a>) -> Result<Node>
pub fn copy(&mut self, destination: View<'a>, source: View<'a>) -> Result<Node>
Record a copy between equal spans.
Sourcepub unsafe fn dispatch(
&mut self,
kernel: &'a Kernel,
grid: [u32; 3],
block: [u32; 3],
constants: &Constants,
bindings: &[AccessView<'a>],
) -> Result<Node>
pub unsafe fn dispatch( &mut self, kernel: &'a Kernel, grid: [u32; 3], block: [u32; 3], constants: &Constants, bindings: &[AccessView<'a>], ) -> Result<Node>
Record a kernel dispatch.
§Safety
In addition to Graph::dispatch’s contract, every binding must declare
all bytes and the complete access performed by the kernel.
Auto Trait Implementations§
impl<'a> !Send for AccessGraph<'a>
impl<'a> !Sync for AccessGraph<'a>
impl<'a> Freeze for AccessGraph<'a>
impl<'a> RefUnwindSafe for AccessGraph<'a>
impl<'a> Unpin for AccessGraph<'a>
impl<'a> UnsafeUnpin for AccessGraph<'a>
impl<'a> UnwindSafe for AccessGraph<'a>
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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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