Skip to content

Commit

Permalink
Remove device.supportsTextureFetch (#6688)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jun 11, 2024
1 parent 6f29e1b commit c11d1a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/platform/graphics/null/null-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class NullGraphicsDevice extends GraphicsDevice {
this.textureFloatRenderable = true;
this.textureHalfFloatRenderable = true;
this.supportsImageBitmap = true;
this.supportsTextureFetch = true;
}

postInit() {
Expand Down
3 changes: 0 additions & 3 deletions src/platform/graphics/webgl/webgl-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,6 @@ class WebglGraphicsDevice extends GraphicsDevice {
// Don't allow area lights on old android devices, they often fail to compile the shader, run it incorrectly or are very slow.
this.supportsAreaLights = !platform.android;

// supports texture fetch instruction
this.supportsTextureFetch = this.isWebGL2;

// Also do not allow them when we only have small number of texture units
if (this.maxTextures <= 8) {
this.supportsAreaLights = false;
Expand Down
1 change: 0 additions & 1 deletion src/platform/graphics/webgpu/webgpu-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class WebgpuGraphicsDevice extends GraphicsDevice {
this.textureFloatRenderable = true;
this.textureHalfFloatRenderable = true;
this.supportsImageBitmap = true;
this.supportsTextureFetch = true;

// WebGPU currently only supports 1 and 4 samples
this.samples = this.backBufferAntialias ? 4 : 1;
Expand Down

0 comments on commit c11d1a7

Please sign in to comment.