소스 검색

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();
     }
 
     //------------------------------------------------------------------------------