Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrBlend.h92 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument
93 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor()
96 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff, in GrBlendCoeffsUseDstColor() argument
98 return GrBlendCoeffRefsDst(srcCoeff) || in GrBlendCoeffsUseDstColor()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
117 static constexpr bool GrBlendShouldDisable(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendShouldDisable() argument
120 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in GrBlendShouldDisable()
151 GrBlendCoeff srcCoeff, in GrBlendAllowsCoverageAsAlpha() argument
154 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
[all …]
/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.cpp45 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
49 , fSrcCoeff(srcCoeff) in BlendFormula()
51 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
90 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
184 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
186 return (kZero_GrBlendCoeff == srcCoeff && in MakeCoeffFormula()
191 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula()
198 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument
200 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula()
218 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.cpp416 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
418 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in setup_color_blend_state()
423 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
426 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
689 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
692 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(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/d3d/
DGrD3DPipelineStateBuilder.cpp363 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in fill_in_blend_state() local
365 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in fill_in_blend_state()
370 rtBlend.SrcBlend = blend_coeff_to_d3d_blend(srcCoeff); in fill_in_blend_state()
373 rtBlend.SrcBlendAlpha = blend_coeff_to_d3d_blend_for_alpha(srcCoeff); in fill_in_blend_state()
DGrD3DOpsRenderPass.cpp96 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in set_blend_factor() local
99 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in set_blend_factor()
/external/skia/src/gpu/mtl/
DGrMtlPipelineState.mm163 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
165 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) {
DGrMtlPipelineStateBuilder.mm354 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
356 bool blendOn = !GrBlendShouldDisable(equation, srcCoeff, dstCoeff);
363 mtlColorAttachment.sourceRGBBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
366 mtlColorAttachment.sourceAlphaBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
/external/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp178 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in create_blend_state() local
181 wgpu::BlendFactor srcFactor = to_dawn_blend_factor(srcCoeff); in create_blend_state()
183 wgpu::BlendFactor srcFactorAlpha = to_dawn_blend_factor_for_alpha(srcCoeff); in create_blend_state()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2533 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlendAndColorWrite() local
2538 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff) || in flushBlendAndColorWrite()
2576 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2577 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlendAndColorWrite()
2579 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlendAndColorWrite()
2583 if ((GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(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()