vkd3d-shader: Set or use the register index count everywhere it is applicable.
After this it's relatively simple in another patch set to remove all initialisations of unused indices.
After this it's relatively simple in another patch set to remove all initialisations of unused indices.