Skip to content

Commit

Permalink
Avoid using WebGPU 'timestamp-query' which has been removed in Chrome…
Browse files Browse the repository at this point in the history
… 121 (#5990)

* Avoid using WebGPU 'timestamp-query' which has been removed in Chrome 121

* space

---------

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jan 26, 2024
1 parent 146b20c commit 98a868b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/platform/graphics/webgpu/webgpu-graphics-device.js
Expand Up @@ -222,7 +222,11 @@ class WebgpuGraphicsDevice extends GraphicsDevice {
this.extCompressedTextureS3TC = requireFeature('texture-compression-bc');
this.extCompressedTextureETC = requireFeature('texture-compression-etc2');
this.extCompressedTextureASTC = requireFeature('texture-compression-astc');
this.supportsTimestampQuery = requireFeature('timestamp-query');

// Do not request timestamp feature as it has changed and current form is not supported.
// See engine issue #5989
// this.supportsTimestampQuery = requireFeature('timestamp-query');

this.textureRG11B10Renderable = requireFeature('rg11b10ufloat-renderable');
Debug.log(`WEBGPU features: ${requiredFeatures.join(', ')}`);

Expand Down

0 comments on commit 98a868b

Please sign in to comment.