(requestedCount)
| 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 }; |
no outgoing calls
no test coverage detected