Skip to content

Commit

Permalink
Throw in very minor fix (apply readonly to buffer used in tesselation).
Browse files Browse the repository at this point in the history
Validation layer seems buggy though as it still complains that we haven't
enabled the feature vertexPipelineStoresAndAtomics
  • Loading branch information
hrydgard committed Sep 18, 2018
1 parent 5975f47 commit c1f0e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Vulkan/VertexShaderGeneratorVulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit c1f0e98

Please sign in to comment.