Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl_sm1.c:
- {
case HLSL_SAMPLER_DIM_1D:
res_type = 1;
break;
case HLSL_SAMPLER_DIM_2D:
res_type = 2;
break;
case HLSL_SAMPLER_DIM_CUBE:
res_type = 3;
break;
case HLSL_SAMPLER_DIM_3D:
res_type = 4;
break;
I believe these are D3DSAMPLER_TEXTURE_TYPE.
Or enum vkd3d_sm1_resource_type. I don't really know why we invented our own sm1 definitions, though...