| 330 | } |
| 331 | |
| 332 | void GPUContextWebGPU::BindIB(GPUBuffer* indexBuffer) |
| 333 | { |
| 334 | auto ibWebGPU = (GPUBufferWebGPU*)indexBuffer; |
| 335 | _indexBufferDirty = true; |
| 336 | _indexBuffer32Bit = indexBuffer->GetFormat() == PixelFormat::R32_UInt; |
| 337 | _indexBuffer.Buffer = ibWebGPU->Buffer; |
| 338 | _indexBuffer.Offset = 0; |
| 339 | _indexBuffer.Size = indexBuffer->GetSize(); |
| 340 | } |
| 341 | |
| 342 | void GPUContextWebGPU::BindSampler(int32 slot, GPUSampler* sampler) |
| 343 | { |