Browse Source

Add draw calls count in webgpu

Popov72 4 years ago
parent
commit
b98f4cc0a1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Engines/webgpuEngine.ts

+ 2 - 0
src/Engines/webgpuEngine.ts

@@ -4004,6 +4004,7 @@ export class WebGPUEngine extends Engine {
         this._setRenderPipeline(fillMode);
 
         renderPass.drawIndexed(indexCount, instancesCount || 1, indexStart, 0, 0);
+        this._reportDrawCall();
     }
 
     /**
@@ -4021,6 +4022,7 @@ export class WebGPUEngine extends Engine {
         this._setRenderPipeline(fillMode);
 
         renderPass.draw(verticesCount, instancesCount || 1, verticesStart, 0);
+        this._reportDrawCall();
     }
 
     //------------------------------------------------------------------------------