Module wgpu_profiler::scope
source · Expand description
Scope types that wrap a wgpu
encoder/pass and start a scope on creation. In most cases, they
then allow automatically ending the scope on drop.
Structs
- Scope that takes ownership of the encoder/pass. Does NOT call end_scope on drop. This construct is just for completeness in cases where working with scopes is preferred but one can’t rely on the Drop call in the right place. This is useful when the owned value needs to be recovered after the end of the scope. In particular, to submit a
CommandEncoder
to a queue ownership of the encoder is necessary. - Scope that takes ownership of the encoder/pass. Calls end_scope on drop.
- Scope that takes a (mutable) reference to the encoder/pass. Calls end_scope on drop.