mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Roll shaderc
This commit is contained in:
committed by
Corentin Wallez
parent
ae7f113fe8
commit
b6fb5f3149
@@ -180,11 +180,10 @@ class PrimitiveTopologyTest : public NXTTest {
|
||||
|
||||
fsModule = utils::CreateShaderModule(device, nxt::ShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
out vec4 fragColor;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
void main() {
|
||||
fragColor = vec4(0.0, 1.0, 0.0, 1.0);
|
||||
})"
|
||||
);
|
||||
})");
|
||||
|
||||
inputState = device.CreateInputStateBuilder()
|
||||
.SetAttribute(0, 0, nxt::VertexFormat::FloatR32G32B32A32, 0)
|
||||
|
||||
@@ -88,7 +88,7 @@ class RenderPassLoadOpTests : public NXTTest {
|
||||
)";
|
||||
const char* fsSource = R"(
|
||||
#version 450
|
||||
out vec4 color;
|
||||
layout(location = 0) out vec4 color;
|
||||
void main() {
|
||||
color = vec4(0.f, 0.f, 1.f, 1.f);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class InputStateTest : public ValidationTest {
|
||||
nxt::ShaderModuleBuilder fsModuleBuilder = AssertWillBeSuccess(device.CreateShaderModuleBuilder());
|
||||
utils::FillShaderModuleBuilder(fsModuleBuilder, nxt::ShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
out vec4 fragColor;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
void main() {
|
||||
fragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
|
||||
@@ -38,11 +38,10 @@ class RenderPipelineValidationTest : public ValidationTest {
|
||||
|
||||
fsModule = utils::CreateShaderModule(device, nxt::ShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
out vec4 fragColor;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
void main() {
|
||||
fragColor = vec4(0.0, 1.0, 0.0, 1.0);
|
||||
})"
|
||||
);
|
||||
})");
|
||||
}
|
||||
|
||||
nxt::RenderPipelineBuilder& AddDefaultStates(nxt::RenderPipelineBuilder&& builder) {
|
||||
|
||||
@@ -25,11 +25,10 @@ class VertexBufferValidationTest : public ValidationTest {
|
||||
|
||||
fsModule = utils::CreateShaderModule(device, nxt::ShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
out vec4 fragColor;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
void main() {
|
||||
fragColor = vec4(0.0, 1.0, 0.0, 1.0);
|
||||
})"
|
||||
);
|
||||
})");
|
||||
}
|
||||
|
||||
void MakeRenderPassAndFrameBuffer(uint32_t subpassCount) {
|
||||
|
||||
Reference in New Issue
Block a user