What could this be other than a resource register? And similarly for the sampler?
For d3dbc sources, either VKD3DSPR_COMBINED_SAMPLER, or VKD3DSPR_TEXTURE before SM2. We may want to consider running this after normalise_combined_samplers() in the future, but at least for the moment that doesn't handle all texture instructions and shader models.