Is your feature request related to a problem? Please describe.
So apparently DXC has a secret _Static_assert function! Lets use it rather than our lame attempt at static_assert
Describe the solution you'd like
I would probably keep the STATIC_ASSERT macro but just change the underlying implementation. This means we are getting better diagnostics while not breaking anything.
Describe alternatives you've considered
We could just change our macro out for the compiler intrinsic but it is not technically an HLSL feature and is only used in testing of the compiler so it might become unavailable at some point. Probably best to wrap it for now...
Is your feature request related to a problem? Please describe. So apparently DXC has a secret _Static_assert function! Lets use it rather than our lame attempt at static_assert
Describe the solution you'd like I would probably keep the STATIC_ASSERT macro but just change the underlying implementation. This means we are getting better diagnostics while not breaking anything.
Describe alternatives you've considered We could just change our macro out for the compiler intrinsic but it is not technically an HLSL feature and is only used in testing of the compiler so it might become unavailable at some point. Probably best to wrap it for now...
Additional context Link of discussion Link to godbolt