File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ impl BindingDescription {
167
167
// TODO(pat.m): not sure if I want to do this here.
168
168
// It does limit things a bit if I want to look things up in a per-pass BindingDescription.
169
169
// Also binding should probably be done through a bindings tracker.
170
+ #[ tracing:: instrument( skip_all, name="BindingDescription::bind" ) ]
170
171
pub fn bind ( & self , core : & mut Core , resource_manager : & mut ResourceManager ) {
171
172
let mut barrier_tracker = core. barrier_tracker ( ) ;
172
173
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ impl BarrierTracker {
73
73
/// Inserts any barriers required for the next draw call to be well defined, assuming appropriate calls to
74
74
/// read/write_* have been made for each resource bound.
75
75
/// Must be called immediately before any draw call/command that may read from or write to a resource.
76
+ #[ tracing:: instrument( skip_all, name="BarrierTracker::emit_barriers" ) ]
76
77
pub fn emit_barriers ( & mut self , gl : & gl:: Gl ) {
77
78
let barrier_flags = std:: mem:: replace ( & mut self . next_barrier_flags , 0 ) ;
78
79
You can’t perform that action at this time.
0 commit comments