We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ecb39d commit c9e966bCopy full SHA for c9e966b
src/GPUDevice.ts
@@ -382,8 +382,8 @@ export class GPUDeviceImpl extends EventEmitter implements GPUDevice {
382
// fatalError("Invalid BufferUsage: MAP_READ can only be combined with COPY_DST.");
383
// }
384
385
- if (descriptor.size <= 0) {
386
- fatalError("Buffer size must be greater than 0");
+ if (descriptor.size < 0) {
+ fatalError("Buffer size must be greater than or equal to 0");
387
}
388
389
const packedDescriptor = WGPUBufferDescriptorStruct.pack(descriptor);
0 commit comments