Skip to content

Add whitelist for decorations to WebGPU validation #2273

@zoddicus

Description

@zoddicus

Add a whitelist for the values being passed into OpDecoration and OpMemberDecoration, for the WebGPU env from the draft spec:

Only the following decorations are valid:

  • SpecId
  • Block
  • RowMajor
  • ColMajor
  • ArrayStride (also see "Layouts" below)
  • MatrixStride (also see "Layouts" below)
  • Builtin (also see "Built-In Variables" below)
  • NoPerspective, only in the Input storage class and the Fragment execution model
  • Flat, only in the Input storage class and the Fragment execution model
  • Centroid
  • Restrict
  • Aliased
  • NonWritable
  • NonReadable
  • Uniform
  • Location, required for all Input and Output, see "Interface" section below
  • Component
  • Index
  • Binding
  • DescriptorSet
  • Offset (also see "Layouts" below)
  • NoContraction

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions