prohibit static SRG members emission, because static members don't participate in the resources, they are normal local variables. they will be taken care of by their normal emission path.
add possiblity to test for the ABSCENCE of code in emssion tests using ^ character at beginning of line (as for [^] in regex lang).
input:
ShaderResourceGroup S : slot1
{
static Texture2D t;
};
@VickyAtAZ ping for review? The idea here is that shader programmers who use "static" in SRG scope (for example to store pseudo global states) had a bug that caused invalid HLSL. Now fixed.
prohibit static SRG members emission, because static members don't participate in the resources, they are normal local variables. they will be taken care of by their normal emission path.
input:
result before:
result now: