pub struct ResidentDispatchStep<'a> {
pub program: &'a Program,
pub resources: &'a [Resource],
pub grid_override: Option<[u32; 3]>,
pub workgroup_override: Option<[u32; 3]>,
}Expand description
One backend-resident program dispatch in an ordered sequence.
Fields§
§program: &'a ProgramProgram to dispatch.
resources: &'a [Resource]Resident resources in binding order.
grid_override: Option<[u32; 3]>Optional CUDA/grid-style launch override.
workgroup_override: Option<[u32; 3]>Optional workgroup override. MUST be carried alongside grid_override:
a caller that sizes its grid for a specific workgroup (grid =
ceil(work / workgroup)) will under-cover the work if the step falls back
to a different default workgroup. None keeps the backend’s resolved
default (correct only when grid_override is also None).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResidentDispatchStep<'a>
impl<'a> !UnwindSafe for ResidentDispatchStep<'a>
impl<'a> Freeze for ResidentDispatchStep<'a>
impl<'a> Send for ResidentDispatchStep<'a>
impl<'a> Sync for ResidentDispatchStep<'a>
impl<'a> Unpin for ResidentDispatchStep<'a>
impl<'a> UnsafeUnpin for ResidentDispatchStep<'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