Struct naga::compact::functions::FunctionTracer
source · pub struct FunctionTracer<'a> {
pub function: &'a Function,
pub constants: &'a Arena<Constant>,
pub types_used: &'a mut HandleSet<Type>,
pub constants_used: &'a mut HandleSet<Constant>,
pub global_expressions_used: &'a mut HandleSet<Expression>,
pub expressions_used: HandleSet<Expression>,
}
Fields§
§function: &'a Function
§constants: &'a Arena<Constant>
§types_used: &'a mut HandleSet<Type>
§constants_used: &'a mut HandleSet<Constant>
§global_expressions_used: &'a mut HandleSet<Expression>
§expressions_used: HandleSet<Expression>
Function-local expressions used.
Implementations§
source§impl<'a> FunctionTracer<'a>
impl<'a> FunctionTracer<'a>
pub fn trace(&mut self)
fn as_expression(&mut self) -> ExpressionTracer<'_>
source§impl FunctionTracer<'_>
impl FunctionTracer<'_>
pub fn trace_block(&mut self, block: &[Statement])
fn trace_atomic_function(&mut self, fun: &AtomicFunction)
fn trace_ray_query_function(&mut self, fun: &RayQueryFunction)
Trait Implementations§
source§impl From<FunctionTracer<'_>> for FunctionMap
impl From<FunctionTracer<'_>> for FunctionMap
source§fn from(used: FunctionTracer<'_>) -> Self
fn from(used: FunctionTracer<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for FunctionTracer<'a>
impl<'a> RefUnwindSafe for FunctionTracer<'a>
impl<'a> Send for FunctionTracer<'a>
impl<'a> Sync for FunctionTracer<'a>
impl<'a> Unpin for FunctionTracer<'a>
impl<'a> !UnwindSafe for FunctionTracer<'a>
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