tint: IntrinsicTable: Add abstract numeric types

These aren't used by anything (yet). Baby steps.

Bug: tint:1504
Change-Id: Icf0261ec9c6802f004d9f1bc4780a6376ebb8dfb
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90530
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
Ben Clayton
2022-05-19 18:30:39 +00:00
committed by Dawn LUCI CQ
parent b1fa457ab3
commit 6ac00ed0c0
4 changed files with 1132 additions and 1004 deletions

View File

@@ -331,6 +331,8 @@ func validate(fqn sem.FullyQualifiedName, uses *sem.StageUses) bool {
strings.Contains(elTyName, "sampler"),
strings.Contains(elTyName, "texture"):
return false // Not storable
case elTyName == "af" || elTyName == "ai":
return false // Abstract types are not typeable nor supported by arrays
}
case "ptr":
// https://gpuweb.github.io/gpuweb/wgsl/#storage-class