summaryrefslogtreecommitdiff
path: root/source/slang/hlsl.meta.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-03-28 11:12:40 -0700
committerGitHub <noreply@github.com>2023-03-28 11:12:40 -0700
commite22b4dbb1bed1393fc028b87b8ff6ff30e1b73f3 (patch)
tree5fa276d207921d07eb56cc3a990477777fa33898 /source/slang/hlsl.meta.slang
parent0a6926003fd2300858e3089fe82f421543852395 (diff)
Small fixes and cleanups on CUDA/CPP codegen. (#2746)
* Small fixes and cleanups on CUDA/CPP codegen. * Disable `legalizeEmptyTypes` for now. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/hlsl.meta.slang')
-rw-r--r--source/slang/hlsl.meta.slang3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index 4c4aaa4f0..7774c0d01 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -6837,10 +6837,13 @@ void debugBreak();
__target_intrinsic(cuda, "(threadIdx)")
+[__readNone]
uint3 cudaThreadIdx();
__target_intrinsic(cuda, "(blockIdx)")
+[__readNone]
uint3 cudaBlockIdx();
__target_intrinsic(cuda, "(blockDim)")
+[__readNone]
uint3 cudaBlockDim();