mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Rename StorageClass to AddressSpace.
This CL updates the internals to use AddressSpace instead of the old StorageClass name. Bug: tint:1404 Change-Id: Iecc208e839453437f4d630f65e0152206a52db7e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104420 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
d5b64ecd78
commit
ff7cf21021
@@ -63,7 +63,7 @@ Quoting single word identifiers or keywords from the source is not discouraged.
|
||||
**Don't:**
|
||||
|
||||
```
|
||||
shader.wgsl:5:11 error: type cannot be used in storage class 'storage' as it is non-host-shareable
|
||||
shader.wgsl:5:11 error: type cannot be used in address space 'storage' as it is non-host-shareable
|
||||
|
||||
cond : bool;
|
||||
^^^^
|
||||
@@ -72,7 +72,7 @@ shader.wgsl:5:11 error: type cannot be used in storage class 'storage' as it is
|
||||
**Do:**
|
||||
|
||||
```
|
||||
shader.wgsl:5:11 error: type cannot be used in storage class 'storage' as it is non-host-shareable
|
||||
shader.wgsl:5:11 error: type cannot be used in address space 'storage' as it is non-host-shareable
|
||||
|
||||
cond : bool;
|
||||
^^^^
|
||||
|
||||
@@ -12,7 +12,7 @@ Specification work in the WebGPU group hasn't started.
|
||||
|
||||
## Pseudo-specification
|
||||
|
||||
This extension adds a new `push_constant` storage class that's only allowed on global variable declarations.
|
||||
This extension adds a new `push_constant` address space that's only allowed on global variable declarations.
|
||||
Push constant variables must only contain 32bit data types (or aggregates of such types).
|
||||
Push constant variable declarations must not have an initializer.
|
||||
It is an error for a entry point to statically use more than one `push_constant` variable.
|
||||
|
||||
@@ -15,7 +15,7 @@ as variables at module scope.
|
||||
## Vulkan SPIR-V today
|
||||
|
||||
SPIR-V for Vulkan models inputs and outputs as module-scope variables in
|
||||
the Input and Output storage classes, respectively.
|
||||
the Input and Output address spaces, respectively.
|
||||
|
||||
The `OpEntryPoint` instruction has a list of module-scope variables that must
|
||||
be a superset of all the input and output variables that are statically
|
||||
|
||||
@@ -141,7 +141,7 @@ TODO(dsinclair): Nested if's
|
||||
## SPIR-V
|
||||
TODO(dsinclair): Nested if's
|
||||
|
||||
# Storage classes
|
||||
# Address spaces
|
||||
TODO(dsinclair): do ...
|
||||
|
||||
# Storage buffers
|
||||
@@ -155,7 +155,7 @@ TODO(dsinclair): Rewrite with bools
|
||||
## MSL
|
||||
TODO(dsinclair): Rewrite with bools
|
||||
|
||||
# Input / Output storage class
|
||||
# Input / Output address spaces
|
||||
## HLSL
|
||||
TODO(dsinclair): Structs and params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user