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:
parent
ade9a5235c
commit
24e6369261
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue