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 <dsinclair@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-10-23 12:41:40 +00:00 committed by Commit Bot service account
parent ade9a5235c
commit 24e6369261
1 changed files with 2 additions and 1 deletions

View File

@ -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);