https://github.com/shader-slang/slang
Raw File
Tip revision: a61f089fbc4b944d058e6417d8a0d22d57ca5c92 authored by Yong He on 28 March 2023, 22:19:03 UTC
Add slangpy doc, fix cuda prelude. (#2748)
Tip revision: a61f089
gh-1374.slang
// gh-1374.slang

// Test a `static` variable wwith a definition that refers to itself

//DIAGNOSTIC_TEST:REFLECTION:-stage compute -entry main -target hlsl

struct S
{
	static const int kVal = kVal;

	static const int kInf = kInf + 1;

	static const int kA = kB;
	static const int kB = kA;
}

[numthreads(1, 1, 1)]
void main(
    uint3 dispatchThreadID : SV_DispatchThreadID)
{
}
back to top