From: Zebediah Figura zfigura@codeweavers.com
--- include/vkd3d_shader.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/include/vkd3d_shader.h b/include/vkd3d_shader.h index 01356ce39..98c991102 100644 --- a/include/vkd3d_shader.h +++ b/include/vkd3d_shader.h @@ -388,6 +388,15 @@ enum vkd3d_shader_d3dbc_constant_register * - \a binding.binding = 5 * - \a binding.count = 1 * + * For legacy Direct3D bytecode, which uses registers representing combined + * resources and samplers, both the sampler and resource bindings should be + * specified in this array, using the same register_index value. + * In order to instead map a legacy Direct3D combined sampler to a combined + * sampler in the host environment, use + * struct vkd3d_shader_combined_resource_sampler, and set both + * \ref vkd3d_shader_combined_resource_sampler.resource_index and + * \ref vkd3d_shader_combined_resource_sampler.sampler_index to the same value. + * * This structure is used in struct vkd3d_shader_interface_info. */ struct vkd3d_shader_resource_binding @@ -423,6 +432,11 @@ struct vkd3d_shader_resource_binding * Describes the mapping of a Direct3D resource-sampler pair to a combined * sampler (i.e. sampled image). * + * This structure can also be used to map a legacy Direct3D sampler to a + * combined sampler in the host environment. + * In this case both \ref resource_index and \ref sampler_index should be set + * to the register index of the Direct3D sampler. + * * This structure is used in struct vkd3d_shader_interface_info. */ struct vkd3d_shader_combined_resource_sampler