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

Method _getValidSampleCount

src/webgpu/p5.RendererWebGPU.js:849–854  ·  view source on GitHub ↗
(requestedCount)

Source from the content-addressed store, hash-verified

847 }
848
849 _getValidSampleCount(requestedCount) {
850 // WebGPU supports sample counts of 1, 4 (and sometimes 8)
851 if (requestedCount <= 1) return 1;
852 if (requestedCount <= 4) return 4;
853 return 4; // Cap at 4 for broader compatibility
854 }
855
856 _shaderOptions({ mode, compute, workgroupSize }) {
857 if (compute) return { compute: true, workgroupSize };

Callers 2

_shaderOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected