| 149 | } |
| 150 | |
| 151 | void GPUQuerySetWebGPU::OnRead() |
| 152 | { |
| 153 | // Get mapped buffer pointer |
| 154 | ASSERT(_state == Mapping); |
| 155 | _state = Mapped; |
| 156 | _mapped = (const uint64*)wgpuBufferGetConstMappedRange(_readBuffer, 0, _index * sizeof(uint64)); |
| 157 | } |
| 158 | |
| 159 | GPUDataUploaderWebGPU::Allocation GPUDataUploaderWebGPU::Allocate(uint32 size, WGPUBufferUsage usage, uint32 alignment) |
| 160 | { |