diff options
| author | Ali Cheraghi <alichraghi@proton.me> | 2024-11-01 02:03:33 +0330 |
|---|---|---|
| committer | Ali Cheraghi <alichraghi@proton.me> | 2024-11-01 02:03:33 +0330 |
| commit | a1cb9563f6a421220f87692f16251f3628c8cf6c (patch) | |
| tree | f497b95e06f0b8f082960cd4af696bf2f5f52d15 /src/target.zig | |
| parent | 17a87d734167b500761ef0d61493342dea0ae01d (diff) | |
| download | zig-a1cb9563f6a421220f87692f16251f3628c8cf6c.tar.gz zig-a1cb9563f6a421220f87692f16251f3628c8cf6c.zip | |
spirv: Uniform/PushConstant variables
- Rename GPU address spaces to match with SPIR-V spec.
- Emit `Block` Decoration for Uniform/PushConstant variables.
- Don't emit `OpTypeForwardPointer` for non-opencl targets.
(there's still a false-positive about recursive structs)
Signed-off-by: Ali Cheraghi <alichraghi@proton.me>
Diffstat (limited to 'src/target.zig')
| -rw-r--r-- | src/target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig index b0d2bdfe74..00e804d441 100644 --- a/src/target.zig +++ b/src/target.zig @@ -418,7 +418,7 @@ pub fn arePointersLogical(target: std.Target, as: AddressSpace) bool { .global => false, // TODO: Allowed with VK_KHR_variable_pointers. .shared => true, - .constant, .local, .input, .output, .uniform => true, + .constant, .local, .input, .output, .uniform, .push_constant => true, else => unreachable, }; } |
