microsoft / hlsl-specs

HLSL Specifications
MIT License
116 stars 29 forks source link

Anonymous namespaces #255

Open llvm-beanz opened 2 months ago

llvm-beanz commented 2 months ago

Is your feature request related to a problem? Please describe. C++ supports anonymous namespaces to scope complex declarations within a translation unit. These were disabled in DXC, and should be supported in HLSL 202x

Additional context We would need to actively disable this in Clang, and without solid reasoning it is probably better to make them an intentional 202x feature.