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:
parent
c72ab8ce84
commit
be948aa8e0
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue