Home
last modified time | relevance | path

Searched refs:srcCoeff (Results 1 – 18 of 18) sorted by relevance

/external/skia/src/gpu/
DGrBlend.h94 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument
95 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor()
98 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseDstColor() argument
99 return GrBlendCoeffRefsDst(srcCoeff) || kZero_GrBlendCoeff != dstCoeff; in GrBlendCoeffsUseDstColor()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
141 GrBlendCoeff srcCoeff, in GrBlendAllowsCoverageAsAlpha() argument
144 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
146 !GrBlendCoeffRefsSrc(srcCoeff) && in GrBlendAllowsCoverageAsAlpha()
/external/skqp/include/gpu/
DGrBlend.h94 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument
95 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor()
98 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseDstColor() argument
99 return GrBlendCoeffRefsDst(srcCoeff) || kZero_GrBlendCoeff != dstCoeff; in GrBlendCoeffsUseDstColor()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
141 GrBlendCoeff srcCoeff, in GrBlendAllowsCoverageAsAlpha() argument
144 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
146 !GrBlendCoeffRefsSrc(srcCoeff) && in GrBlendAllowsCoverageAsAlpha()
/external/skqp/src/gpu/glsl/
DGrGLSLBlend.cpp442 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendMode() local
443 if (SkBlendMode_AsCoeff(mode, &srcCoeff, &dstCoeff)) { in AppendMode()
452 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcColor, dstColor, in AppendMode()
470 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local
473 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
477 srcCoeff = SkBlendModeCoeff::kDC; in AppendRegionOp()
481 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
485 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
489 srcCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
493 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
[all …]
/external/skqp/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp47 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
51 , fSrcCoeff(srcCoeff) in BlendFormula()
53 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
93 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
195 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
197 return (kZero_GrBlendCoeff == srcCoeff && in MakeCoeffFormula()
202 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula()
209 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument
211 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula()
229 BlendFormula::OutputType oneMinusDstCoeffModulateOutput, GrBlendCoeff srcCoeff) { in MakeCoverageFormula() argument
[all …]
/external/skia/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp47 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
51 , fSrcCoeff(srcCoeff) in BlendFormula()
53 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
93 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
195 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
197 return (kZero_GrBlendCoeff == srcCoeff && in MakeCoeffFormula()
202 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula()
209 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument
211 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula()
229 BlendFormula::OutputType oneMinusDstCoeffModulateOutput, GrBlendCoeff srcCoeff) { in MakeCoverageFormula() argument
[all …]
/external/skqp/src/gpu/vk/
DGrVkPipeline.cpp433 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
436 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
441 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
444 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
622 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
625 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/external/skia/src/gpu/vk/
DGrVkPipeline.cpp472 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
475 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
480 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
483 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
706 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
709 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorShuffling.h163 return m_impl.coeff(srcCoeff(index));
191 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const {
245 return this->m_impl.coeffRef(this->srcCoeff(index));
DTensorStriding.h161 return m_impl.coeff(srcCoeff(index));
228 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
286 return this->m_impl.coeffRef(this->srcCoeff(index));
DTensorMorphing.h390 Index offset = srcCoeff(i);
405 return m_impl.coeff(srcCoeff(index));
498 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
558 return this->m_impl.coeffRef(this->srcCoeff(index));
803 return m_impl.coeff(srcCoeff(index));
815 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
881 return this->m_impl.coeffRef(this->srcCoeff(index));
DTensorChipping.h199 return m_impl.coeff(srcCoeff(index));
278 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
338 return this->m_impl.coeffRef(this->srcCoeff(index));
/external/skqp/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm284 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
287 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff;
291 mtlColorAttachment.sourceRGBBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
294 mtlColorAttachment.sourceAlphaBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
DGrMtlPipelineState.mm184 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
186 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) {
/external/skia/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm357 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
360 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff;
364 mtlColorAttachment.sourceRGBBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
367 mtlColorAttachment.sourceAlphaBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
DGrMtlPipelineState.mm184 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
186 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) {
/external/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp207 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in create_color_state() local
210 wgpu::BlendFactor srcFactor = to_dawn_blend_factor(srcCoeff); in create_color_state()
212 wgpu::BlendFactor srcFactorAlpha = to_dawn_blend_factor_for_alpha(srcCoeff); in create_color_state()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2714 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlendAndColorWrite() local
2721 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff) || in flushBlendAndColorWrite()
2759 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2760 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlendAndColorWrite()
2762 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlendAndColorWrite()
2766 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlendAndColorWrite()
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp2864 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlend() local
2868 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff) || in flushBlend()
2907 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlend()
2908 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlend()
2910 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlend()
2914 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlend()