Преглед изворни кода

Add draw calls count in webgpu

Popov72 пре 4 година
родитељ
комит
b98f4cc0a1
1 измењених фајлова са 2 додато и 0 уклоњено
  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();
     }
 
     //------------------------------------------------------------------------------