struct LookupExpression {
handle: Handle<Expression>,
type_id: Word,
block_id: Word,
}Expand description
Information about SPIR-V result ids, stored in Frontend::lookup_expression.
Fields§
§handle: Handle<Expression>The Expression constructed for this result.
Note that, while a SPIR-V result id can be used in any block dominated
by its definition, a Naga Expression is only in scope for the rest of
its subtree. Frontend::get_expr_handle takes care of spilling the result
to a LocalVariable which can then be used anywhere.
type_id: WordThe SPIR-V type of this result.
block_id: WordThe label id of the block that defines this expression.
This is zero for globals, constants, and function parameters, since they originate outside any function’s block.
Trait Implementations§
Source§impl Clone for LookupExpression
impl Clone for LookupExpression
Source§fn clone(&self) -> LookupExpression
fn clone(&self) -> LookupExpression
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 LookupExpression
impl RefUnwindSafe for LookupExpression
impl Send for LookupExpression
impl Sync for LookupExpression
impl Unpin for LookupExpression
impl UnwindSafe for LookupExpression
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