From c1f0e981a32f85bf213cfd9a479192eb73b1d601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 18 Sep 2018 23:53:16 +0200 Subject: [PATCH] Throw in very minor fix (apply readonly to buffer used in tesselation). Validation layer seems buggy though as it still complains that we haven't enabled the feature vertexPipelineStoresAndAtomics --- GPU/Vulkan/VertexShaderGeneratorVulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp b/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp index c180631e9e..bb572d6185 100644 --- a/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp +++ b/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp @@ -220,7 +220,7 @@ bool GenerateVulkanGLSLVertexShader(const VShaderID &id, char *buffer) { WRITE(p, " vec4 uv;\n"); WRITE(p, " vec4 color;\n"); WRITE(p, "};"); - WRITE(p, "layout (std430, set = 0, binding = 6) buffer s_tess_data {\n"); + WRITE(p, "layout (std430, set = 0, binding = 6) readonly buffer s_tess_data {\n"); WRITE(p, " TessData data[];"); WRITE(p, "} tess_data;\n");