summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile/function-static-const.slang.hlsl
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-16 13:55:32 -0800
committerGitHub <noreply@github.com>2023-02-16 13:55:32 -0800
commit4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (patch)
treeed4af0ded878e4f06e9641ce61d26ffd7c89ccbc /tests/cross-compile/function-static-const.slang.hlsl
parenteda88e513e8b1e2abc05e9dc8555f237d96472df (diff)
Overhaul global inst deduplication and cpp/cuda backend. (#2654)
* Overhaul global inst deduplication and cpp/cuda backend. * Update IR documentation. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/cross-compile/function-static-const.slang.hlsl')
-rw-r--r--tests/cross-compile/function-static-const.slang.hlsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cross-compile/function-static-const.slang.hlsl b/tests/cross-compile/function-static-const.slang.hlsl
index a4f1118eb..95d1e3070 100644
--- a/tests/cross-compile/function-static-const.slang.hlsl
+++ b/tests/cross-compile/function-static-const.slang.hlsl
@@ -13,15 +13,15 @@ cbuffer C_0 : register(b0)
SLANG_ParameterGroup_C_0 C_0;
}
-static const int kArray_0[16] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
+static const int kArray_0[int(16)] = { int(1), int(2), int(3), int(4), int(5), int(6), int(7), int(8), int(9), int(10), int(11), int(12), int(13), int(14), int(15), int(16) };
int test_0(int val_0)
{
return kArray_0[val_0];
}
-vector<float,4> main() : SV_TARGET
+float4 main() : SV_TARGET
{
int _S1 = test_0(C_0.index_0);
- return (vector<float,4>) _S1;
+ return (float4) float(_S1);
}