wgpu
wgpu copied to clipboard
Remove redundant command buffer creation for empty resource transit
Hello. I have some question about redundant command buffer scope creation for empty resource state.
While looking on wgpu-core codes I found that there is command buffer scope for resource transition just before submitting application's command buffer execution. https://github.com/gfx-rs/wgpu/blob/trunk/wgpu-core/src/device/queue.rs#L1123-L1154
But even there is no transition barrier to commit, it create command buffer scope per every submit. I think we can collect transition barriers first, and then create command buffer scope if there exist should be committed.
Could I try removing that redundant command buffer scope for no transition barriers case? Thank you