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.
Implementations§
source§impl Uniformity
impl Uniformity
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 moresource§impl Debug for Uniformity
impl Debug for Uniformity
source§impl<'de> Deserialize<'de> for Uniformity
impl<'de> Deserialize<'de> for Uniformity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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