aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
authorAli Cheraghi <alichraghi@proton.me>2024-11-01 02:03:33 +0330
committerAli Cheraghi <alichraghi@proton.me>2024-11-01 02:03:33 +0330
commita1cb9563f6a421220f87692f16251f3628c8cf6c (patch)
treef497b95e06f0b8f082960cd4af696bf2f5f52d15 /src/target.zig
parent17a87d734167b500761ef0d61493342dea0ae01d (diff)
downloadzig-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.zig2
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,
};
}