libs/vkd3d: Create default sampler for each root signature.

We need a sampler for SpvOpImageFetch aka texelFetch().
This commit is contained in:
Józef Kucia
2017-08-16 13:11:52 +02:00
parent e3d6bac31b
commit f5515c46df
4 changed files with 55 additions and 4 deletions

View File

@@ -88,6 +88,12 @@ struct vkd3d_shader_interface
const struct vkd3d_shader_push_constant *push_constants;
unsigned int push_constant_count;
/* A sampler used by OpImageFetches generated for SM4 ld instructions.
*
* In Vulkan OpImageFetch must be used with a sampled image.
*/
struct vkd3d_shader_descriptor_binding default_sampler;
};
HRESULT vkd3d_shader_compile_dxbc(const struct vkd3d_shader_code *dxbc,