Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl_sm1.c:
case HLSL_SAMPLER_DIM_CUBE:res_type = 3;break;case HLSL_SAMPLER_DIM_3D:res_type = 4;break;default:vkd3d_unreachable();break;- }
 - token = (1u << 31);
 - token |= res_type << D3DSP_DCL_RESOURCETYPE_SHIFT;
 - put_u32(buffer, token);
 
I believe 1.x doesn't write the type.