From 24e6369261071cb59f55de5f987f6fae5dd9ddde Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 23 Oct 2020 12:41:40 +0000 Subject: [PATCH] Slightly improve a RenderPipeline error message. Bug: dawn:559 Change-Id: Ib7156c0f189c0eb577026d939fecff28a3d43cf4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30861 Reviewed-by: dan sinclair Commit-Queue: Corentin Wallez --- src/dawn_native/RenderPipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dawn_native/RenderPipeline.cpp b/src/dawn_native/RenderPipeline.cpp index c00990f985..c9ad7bea67 100644 --- a/src/dawn_native/RenderPipeline.cpp +++ b/src/dawn_native/RenderPipeline.cpp @@ -346,7 +346,8 @@ namespace dawn_native { } if (descriptor->colorStateCount == 0 && !descriptor->depthStencilState) { - return DAWN_VALIDATION_ERROR("Should have at least one attachment"); + return DAWN_VALIDATION_ERROR( + "Should have at least one colorState or a depthStencilState"); } ASSERT(descriptor->fragmentStage != nullptr);