Fix tests that got broken by sharing shaders

This commit is contained in:
baldurk
2020-07-16 15:06:50 +01:00
parent dbce13e434
commit f49c10bcca
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -30,6 +30,7 @@ RD_TEST(VK_CBuffer_Zoo, VulkanGraphicsTest)
"Tests every kind of constant that can be in a cbuffer to make sure it's decoded correctly.";
std::string glslpixel = R"EOSHADER(
#version 460 core
layout(location = 0, index = 0) out vec4 Color;
+2 -2
View File
@@ -177,8 +177,8 @@ void main()
VkPipeline pipe = createGraphicsPipeline(pipeCreateInfo);
pipeCreateInfo.stages[0] = CompileShaderModule("\n#define USE_POINTS\n" + vertex,
ShaderLang::glsl, ShaderStage::vert, "main"),
pipeCreateInfo.stages[0] = CompileShaderModule(vertex, ShaderLang::glsl, ShaderStage::vert,
"main", {std::make_pair("USE_POINTS", "1")}),
pipeCreateInfo.inputAssemblyState.topology = VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
VkPipeline pointspipe = createGraphicsPipeline(pipeCreateInfo);
@@ -14,6 +14,6 @@ class VK_Imageless_Framebuffer(rdtest.TestCase):
pipe: rd.PipeState = self.controller.GetPipelineState()
self.check_pixel_value(pipe.GetOutputTargets()[0].resourceId, 0.5, 0.5, [1.0, 0.0, 0.0, 1.0])
self.check_pixel_value(pipe.GetOutputTargets()[0].resourceId, 0.5, 0.5, [0.0, 1.0, 0.0, 1.0])
rdtest.log.success("picked value is as expected")