mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Use const*const* to annotate color state descriptors
Color state descriptors are a sequence of descriptors embedded in RenderPipeline descriptor. We should use const*const* to annotate them for supporting potential extended features added in color state descriptors in future. BUG=dawn:77 Change-Id: Id755569fa5076668c3db7b219b699845bc2a1d69 Reviewed-on: https://dawn-review.googlesource.com/c/4880 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Yunchao He <yunchao.he@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
f20f5b9493
commit
938811eef9
@@ -72,8 +72,6 @@ void init() {
|
||||
|
||||
descriptor.sampleCount = 1;
|
||||
|
||||
descriptor.numColorStates = 1;
|
||||
|
||||
dawnBlendDescriptor blendDescriptor;
|
||||
blendDescriptor.operation = DAWN_BLEND_OPERATION_ADD;
|
||||
blendDescriptor.srcFactor = DAWN_BLEND_FACTOR_ONE;
|
||||
@@ -84,7 +82,10 @@ void init() {
|
||||
colorStateDescriptor.alphaBlend = blendDescriptor;
|
||||
colorStateDescriptor.colorBlend = blendDescriptor;
|
||||
colorStateDescriptor.colorWriteMask = DAWN_COLOR_WRITE_MASK_ALL;
|
||||
descriptor.colorStates = &colorStateDescriptor;
|
||||
|
||||
descriptor.numColorStates = 1;
|
||||
dawnColorStateDescriptor* colorStatesPtr[] = {&colorStateDescriptor};
|
||||
descriptor.colorStates = colorStatesPtr;
|
||||
|
||||
dawnPipelineLayoutDescriptor pl;
|
||||
pl.nextInChain = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user