shader-slang / slang

Making it easier to work with shaders
MIT License
1.78k stars 159 forks source link

Slang stdlib: Remove `__intrinsic_asm "<invalid intrinsic*>"` in favor of `static_assert` #4416

Open ArielG-NV opened 1 week ago

ArielG-NV commented 1 week ago

static_assert provides a clean interface to error when we have unimplemented intrinsic stubs. This should be used to provide a clean and simple error to users in favor over __intrinsic_asm "<invalid intrinsic>" and variations.