pub struct Uniformity {
pub non_uniform_result: Option<Handle<Expression>>,
pub requirements: UniformityRequirements,
}
Expand description
Uniform control flow characteristics.
Fields§
§non_uniform_result: Option<Handle<Expression>>
A child expression with non-uniform result.
This means, when the relevant invocations are scheduled on a compute unit, they have to use vector registers to store an individual value per invocation.
Whenever the control flow is conditioned on such value, the hardware needs to keep track of the mask of invocations, and process all branches of the control flow.
Any operations that depend on non-uniform results also produce non-uniform.
requirements: UniformityRequirements
If this expression requires uniform control flow, store the reason here.
Trait Implementations§
Source§impl Clone for Uniformity
impl Clone for Uniformity
Source§fn clone(&self) -> Uniformity
fn clone(&self) -> Uniformity
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Uniformity
impl RefUnwindSafe for Uniformity
impl Send for Uniformity
impl Sync for Uniformity
impl Unpin for Uniformity
impl UnwindSafe for Uniformity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)