[DirectX] Fix printing of DXIL cbuffer info (#128698)
Make sure we're able to print cbuffer comments in a way that's
compatible with DXC.
Fixes #128562
Note: This is a re-commit because I somehow managed to get a completely
empty commit the first time.