yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeAdd legalization for 0-sized arrays. (#7327)2d7106640

master
271 B13 linesraw
1// array-zero-size.slang
2
3// Test that array size cannot be zero
4
5//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
6
7[numthreads(4, 1, 1)]
8void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
9{
10    bar();
11}
12//CHECK: ([[# @LINE+1]]): error 30025
13func bar() -> int[-1];