22 Mar
2024
22 Mar
'24
9:13 p.m.
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.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/739#note_65848