MCPcopy Index your code
hub / github.com/processing/p5.js / _shaderOptionsDifferent

Method _shaderOptionsDifferent

src/webgpu/p5.RendererWebGPU.js:887–893  ·  view source on GitHub ↗
(newOptions)

Source from the content-addressed store, hash-verified

885 }
886
887 _shaderOptionsDifferent(newOptions) {
888 if (!this.activeShaderOptions) return true;
889 for (const key in this.activeShaderOptions) {
890 if (this.activeShaderOptions[key] !== newOptions[key]) return true;
891 }
892 return false;
893 }
894
895 _initShader(shader) {
896 const device = this.device;

Callers 1

setupShaderBindGroupsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected