Revision 39fb45484996f9d71b6551239dbf55eaaaf8db1f authored by Theresa Foley on 17 May 2022, 17:56:36 UTC, committed by GitHub on 17 May 2022, 17:56:36 UTC
Checking in more in-progress proposals in the hopes of sparking discussion and/or guiding future implementation work.
1 parent 5a3aa61
Raw File
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