Fix WebGPU crash when creating buffer with init data that is not aligned to 4 bytes
This commit is contained in:
@@ -109,7 +109,7 @@ bool GPUBufferWebGPU::OnInit()
|
||||
}
|
||||
else if (_desc.InitData)
|
||||
{
|
||||
wgpuQueueWriteBuffer(_device->Queue, Buffer, 0, _desc.InitData, _desc.Size);
|
||||
wgpuQueueWriteBuffer(_device->Queue, Buffer, 0, _desc.InitData, bufferDesc.size);
|
||||
}
|
||||
|
||||
// Create view
|
||||
|
||||
Reference in New Issue
Block a user