You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now in dist/index.d.ts GPUPipelineLayoutDescriptor is defined as below, which means the member of bindGroupLayouts in GPUPipelineLayoutDescriptor can not be undefined:
interfaceGPUPipelineLayoutDescriptorextendsGPUObjectDescriptorBase{/** * A list of optional {@link GPUBindGroupLayout}s the pipeline will use. Each element corresponds * to a @group attribute in the {@link GPUShaderModule}, with the `N`th element corresponding * with `@group(N)`. */
bindGroupLayouts: Iterable<GPUBindGroupLayout|null>;}
While according to WebGPU SPEC, undefined is valid as a member of bindGroupLayouts in GPUPipelineLayoutDescriptor:
Now in dist/index.d.ts
GPUPipelineLayoutDescriptor
is defined as below, which means the member ofbindGroupLayouts
inGPUPipelineLayoutDescriptor
can not beundefined
:While according to WebGPU SPEC,
undefined
is valid as a member ofbindGroupLayouts
inGPUPipelineLayoutDescriptor
:Does it mean the definition of
GPUPipelineLayoutDescriptor
in dist/index.d.ts doesn't follow the WebGPU SPEC?The text was updated successfully, but these errors were encountered: