Skip to content

Commit c9e966b

Browse files
committed
check webgpu:api,validation,createBindGroup:*
1 parent 2ecb39d commit c9e966b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GPUDevice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ export class GPUDeviceImpl extends EventEmitter implements GPUDevice {
382382
// fatalError("Invalid BufferUsage: MAP_READ can only be combined with COPY_DST.");
383383
// }
384384

385-
if (descriptor.size <= 0) {
386-
fatalError("Buffer size must be greater than 0");
385+
if (descriptor.size < 0) {
386+
fatalError("Buffer size must be greater than or equal to 0");
387387
}
388388

389389
const packedDescriptor = WGPUBufferDescriptorStruct.pack(descriptor);

0 commit comments

Comments
 (0)