Zebediah Figura (@zfigura) commented about tests/hlsl/fx-syntax.shader_test:
+float3 vec;
+float4 main() : sv_target { return 0; }
+DepthStencilState dss1 +{
- RandomField = vec.w;
+};
+% Test function call syntax for state blocks. Unlike assignment syntax, only these names are allowed. +% The parameter count is also checked. +[pixel shader todo] +sampler sam +{
- SetBlendState(foo, bar, baz); // 3 parameters
Can you mix function calls and assignments? I'd assume so but it'd be trivial to test.