Re: [PATCH v2 0/7] MR739: vkd3d-shader/hlsl: Parse state blocks, part 1.
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
639
Age (days ago)
639
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zebediah Figura (@zfigura)