mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Fix tests that got broken by sharing shaders
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user