Initialize BlendDescriptor with default values.

BUG=dawn:32
TEST=dawn_end2end_tests

Change-Id: Ic5ae03e06e3cc620d0fefd3858206276c3fe9980
Reviewed-on: https://dawn-review.googlesource.com/c/2061
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Yunchao He 2018-10-30 10:03:47 +00:00 committed by Commit Bot service account
parent c72ab8ce84
commit be948aa8e0
1 changed files with 4 additions and 2 deletions

View File

@ -29,8 +29,10 @@ namespace dawn_native {
struct BlendInfo {
bool blendEnabled = false;
BlendDescriptor alphaBlend;
BlendDescriptor colorBlend;
BlendDescriptor alphaBlend = {dawn::BlendOperation::Add, dawn::BlendFactor::One,
dawn::BlendFactor::Zero};
BlendDescriptor colorBlend = {dawn::BlendOperation::Add, dawn::BlendFactor::One,
dawn::BlendFactor::Zero};
dawn::ColorWriteMask colorWriteMask = dawn::ColorWriteMask::All;
};