On Tue Mar 26 04:38:03 2024 +0000, Francisco Casas wrote:
Interesting, when compiling the following shader with with native and `fx_4_0`:
BlendState myBS { BlendEnable = false; }; technique { }
I get:
blendenable1.hlsl(3,5-24): Index is required for state 'BlendEnable'
meaning that it is an index, and for some state members it is required at least for `fx_4_0`, it is not for `fx_2_0`.
I was curious and did a couple more tests, and it turns out that for fx_4_1, "SrcBlend = src_color" will actually emit all 8 indices separately, but "SrcBlend[0] = src_color" just emits index 0. So that's interesting.