这是indexloc提供的服务,不要输入任何密码
Skip to content

Does an override need to be statically used by the entry point to be allowed? #4624

@kainino0x

Description

@kainino0x

The spec as written says that an override does not need to be statically used by an entry point, to be allowed to be specified in the pipeline descriptor:

  1. For each key → value in descriptor.constants:
    • 1. key must equal the pipeline-overridable constant identifier string of some pipeline-overridable constant defined in the shader module descriptor.module

This was only briefly discussed but it was an intentional choice: #1766 (comment)

However from gpuweb/cts#1991 and #3600 it seems like WGSL has been assuming that it does need to be statically used. I'm not sure if the two specs technically conflict since WebGPU does not use the "interface of a shader" in the validation rule, but they definitely sound like they conflict.

Metadata

Metadata

Assignees

Labels

apiWebGPU APIapi resolvedResolved - waiting for a change to the API specificationneeds-cts-issueThis change requires tests (or would need tests if accepted), but may not have a CTS issue filed yetwgslWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specification

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions