diff options
Diffstat (limited to 'video/out/vulkan/ra_vk.c')
-rw-r--r-- | video/out/vulkan/ra_vk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/vulkan/ra_vk.c b/video/out/vulkan/ra_vk.c index 58213bd0e9..f85e30e21c 100644 --- a/video/out/vulkan/ra_vk.c +++ b/video/out/vulkan/ra_vk.c @@ -202,7 +202,11 @@ struct ra *ra_create_vk(struct mpvk_ctx *vk, struct mp_log *log) goto error; // UBO support is required - ra->caps |= RA_CAP_BUF_RO; + ra->caps |= RA_CAP_BUF_RO | RA_CAP_FRAGCOORD; + + // textureGather is only supported in GLSL 400+ + if (ra->glsl_version >= 400) + ra->caps |= RA_CAP_GATHER; // Try creating a shader storage buffer struct ra_buf_params ssbo_params = { |