Test reading from NULL vertex buffer at offset 0 with VK_EXT_robustness2

This commit is contained in:
baldurk
2021-11-11 15:36:56 +00:00
parent 77e11abf07
commit 3da6a89bfb
+4
View File
@@ -200,6 +200,10 @@ void main()
vkh::vertexAttr(2, 1, DefaultA2V, uv),
};
// uv will test reading from a NULL buffer with an offset, since we won't be reading data anyway
// test reading at offset 0
pipeCreateInfo.vertexInputState.vertexAttributeDescriptions[1].offset = 0;
pipeCreateInfo.stages = {
CompileShaderModule(common + vertex, ShaderLang::glsl, ShaderStage::vert, "main"),
CompileShaderModule(common + pixel, ShaderLang::glsl, ShaderStage::frag, "main"),