Struct naga::back::spv::ExpressionConstnessTracker
source · struct ExpressionConstnessTracker {
inner: HandleSet<Expression>,
}
Expand description
Tracks the expressions for which the backend emits the following instructions:
- OpConstantTrue
- OpConstantFalse
- OpConstant
- OpConstantComposite
- OpConstantNull
Fields§
§inner: HandleSet<Expression>
Implementations§
source§impl ExpressionConstnessTracker
impl ExpressionConstnessTracker
fn from_arena(arena: &Arena<Expression>) -> Self
fn is_const(&self, value: Handle<Expression>) -> bool
Auto Trait Implementations§
impl Freeze for ExpressionConstnessTracker
impl RefUnwindSafe for ExpressionConstnessTracker
impl Send for ExpressionConstnessTracker
impl Sync for ExpressionConstnessTracker
impl Unpin for ExpressionConstnessTracker
impl UnwindSafe for ExpressionConstnessTracker
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