ComputeSharp icon indicating copy to clipboard operation
ComputeSharp copied to clipboard

Add support for using enum types in shaders

Open rickbrew opened this issue 3 years ago • 1 comments

As we discussed on Discord :) I assume these would just map to int or long.

rickbrew avatar Apr 27 '22 20:04 rickbrew

In theory HLSL does support enums, so I'm thinking I could also just map the type directly and use it just like in C#, except that you'd access it as Foo::Bar in HLSL and not as Foo.Bar.

Sergio0694 avatar Apr 28 '22 00:04 Sergio0694