Struct naga::valid::Uniformity
source · 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