Forum

HLSL bool array

maybe i am wrong somehow but IMHO it should be possible to have an
bool4
inputparameter.

have a look at the attached Cursor.fx:

change line 38
from
float4 SwitchLine <String uiname=“Enable”;> = {1, 0, 0, 1};

to
bool4 SwitchLine <String uiname=“Enable”;> = {1, 0, 0, 1};

it does compile well but does not react on input anymore…

Cursor.zip (7.0 kB)

strange indeed. seems dx/hlsl have troubles dealing with bools. hope my workaround for beta>21 (now internally dealing with bools the same as with ints) works in general.