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: Word
The SPIR-V type of this result.
block_id: Word
The 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
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
)