microsoft / DirectXShaderCompiler

This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
Other
3.03k stars 678 forks source link

Update HLSL semantic parsing and comparing to use enums instead of strings #5814

Open hekota opened 11 months ago

hekota commented 11 months ago

We should parse knowns HLSL semantic attribute strings into enums and store them as such to avoid strings comparisons.

pow2clk commented 11 months ago

Came up from this comment https://github.com/microsoft/DirectXShaderCompiler/pull/5806/files#r1341869905