(dimA, dimB = 1)
| 75 | } |
| 76 | |
| 77 | bufferSize(dimA, dimB = 1) { |
| 78 | const size = Math.ceil((dimA * dimB * Float32Array.BYTES_PER_ELEMENT) / 1) * 1; |
| 79 | if (size > this.device.limits.maxStorageBufferBindingSize) throw new Error("Buffer size exceeds GPU limit."); |
| 80 | return size; |
| 81 | } |
| 82 | |
| 83 | // Could be removed with auto bind groups, currently initializing everytime so probably slowing things down. |
| 84 | initBindGroups() { |
no outgoing calls
no test coverage detected