Module wgpu_profiler::scope[][src]

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

ManualOwningScope

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.

OwningScope

Scope that takes ownership of the encoder/pass. Calls end_scope on drop.

Scope

Scope that takes a (mutable) reference to the encoder/pass. Calls end_scope on drop.