mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
Enable BlendStateTest on the Vulkan backend
This commit is contained in:
parent
54c11a8a55
commit
5000ee68d2
@ -838,7 +838,14 @@ TEST_P(BlendStateTest, IndependentBlendState) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test that the default blend color is correctly set at the beginning of every subpass
|
||||||
TEST_P(BlendStateTest, DefaultBlendColor) {
|
TEST_P(BlendStateTest, DefaultBlendColor) {
|
||||||
|
if (IsVulkan()) {
|
||||||
|
std::cout << "Test skipped on Vulkan because it doesn't support multisubpass renderpasses"
|
||||||
|
<< std::endl;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
nxt::BlendState blendState = device.CreateBlendStateBuilder()
|
nxt::BlendState blendState = device.CreateBlendStateBuilder()
|
||||||
.SetBlendEnabled(true)
|
.SetBlendEnabled(true)
|
||||||
.SetColorBlend(nxt::BlendOperation::Add, nxt::BlendFactor::BlendColor, nxt::BlendFactor::One)
|
.SetColorBlend(nxt::BlendOperation::Add, nxt::BlendFactor::BlendColor, nxt::BlendFactor::One)
|
||||||
@ -973,4 +980,4 @@ TEST_P(BlendStateTest, DefaultBlendColor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NXT_INSTANTIATE_TEST(BlendStateTest, D3D12Backend, MetalBackend, OpenGLBackend)
|
NXT_INSTANTIATE_TEST(BlendStateTest, D3D12Backend, MetalBackend, OpenGLBackend, VulkanBackend)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user