HLSL 202x is moving to disallow namespace declarations inside cbuffer declarations. The proposal is [[0005] -cbuffer contextx](https://github.com/hlsl-tc57/tc57/blob/main/proposals/0005-cbuffer-contexts.md).
Activity
[202x][0005] Implement cbuffer contexts (microsoft#8935)