Home
last modified time | relevance | path

Searched refs:BlendFactor (Results 1 – 25 of 39) sorted by relevance

12

/third_party/vk-gl-cts/external/amber/src/src/
Dcommand_data.cc57 BlendFactor NameToBlendFactor(const std::string& name) { in NameToBlendFactor()
59 return BlendFactor::kZero; in NameToBlendFactor()
61 return BlendFactor::kOne; in NameToBlendFactor()
63 return BlendFactor::kSrcColor; in NameToBlendFactor()
65 return BlendFactor::kOneMinusSrcColor; in NameToBlendFactor()
67 return BlendFactor::kDstColor; in NameToBlendFactor()
69 return BlendFactor::kOneMinusDstColor; in NameToBlendFactor()
71 return BlendFactor::kSrcAlpha; in NameToBlendFactor()
73 return BlendFactor::kOneMinusSrcAlpha; in NameToBlendFactor()
75 return BlendFactor::kDstAlpha; in NameToBlendFactor()
[all …]
Dpipeline_data.h155 void SetSrcColorBlendFactor(BlendFactor f) { src_color_blend_factor_ = f; } in SetSrcColorBlendFactor()
156 BlendFactor GetSrcColorBlendFactor() const { return src_color_blend_factor_; } in GetSrcColorBlendFactor()
158 void SetDstColorBlendFactor(BlendFactor f) { dst_color_blend_factor_ = f; } in SetDstColorBlendFactor()
159 BlendFactor GetDstColorBlendFactor() const { return dst_color_blend_factor_; } in GetDstColorBlendFactor()
161 void SetSrcAlphaBlendFactor(BlendFactor f) { src_alpha_blend_factor_ = f; } in SetSrcAlphaBlendFactor()
162 BlendFactor GetSrcAlphaBlendFactor() const { return src_alpha_blend_factor_; } in GetSrcAlphaBlendFactor()
164 void SetDstAlphaBlendFactor(BlendFactor f) { dst_alpha_blend_factor_ = f; } in SetDstAlphaBlendFactor()
165 BlendFactor GetDstAlphaBlendFactor() const { return dst_alpha_blend_factor_; } in GetDstAlphaBlendFactor()
203 BlendFactor src_color_blend_factor_ = BlendFactor::kOne;
204 BlendFactor dst_color_blend_factor_ = BlendFactor::kZero;
[all …]
Dcommand_data.h161 enum class BlendFactor : uint8_t { enum
185 BlendFactor NameToBlendFactor(const std::string& name);
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DColorStateTests.cpp147 blendComponent.srcFactor = wgpu::BlendFactor::One; in CheckBlendOperation()
148 blendComponent.dstFactor = wgpu::BlendFactor::One; in CheckBlendOperation()
168 wgpu::BlendFactor colorSrcFactor, in CheckBlendFactor()
169 wgpu::BlendFactor colorDstFactor, in CheckBlendFactor()
170 wgpu::BlendFactor alphaSrcFactor, in CheckBlendFactor()
171 wgpu::BlendFactor alphaDstFactor, in CheckBlendFactor()
199 wgpu::BlendFactor colorFactor, in CheckSrcBlendFactor()
200 wgpu::BlendFactor alphaFactor, in CheckSrcBlendFactor()
202 CheckBlendFactor(base, colorFactor, wgpu::BlendFactor::One, alphaFactor, in CheckSrcBlendFactor()
203 wgpu::BlendFactor::One, tests); in CheckSrcBlendFactor()
[all …]
DCreatePipelineAsyncTests.cpp908 blendComponent0.srcFactor = wgpu::BlendFactor::One; in TEST_P()
909 blendComponent0.dstFactor = wgpu::BlendFactor::One; in TEST_P()
918 blendComponent1.srcFactor = wgpu::BlendFactor::One; in TEST_P()
919 blendComponent1.dstFactor = wgpu::BlendFactor::One; in TEST_P()
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
Dparser_blend_test.cc57 ASSERT_EQ(BlendFactor::kSrcAlpha, in TEST_F()
59 ASSERT_EQ(BlendFactor::kOneMinusSrcAlpha, in TEST_F()
64 ASSERT_EQ(BlendFactor::kOne, in TEST_F()
66 ASSERT_EQ(BlendFactor::kZero, in TEST_F()
100 ASSERT_EQ(BlendFactor::kOne, in TEST_F()
102 ASSERT_EQ(BlendFactor::kZero, in TEST_F()
107 ASSERT_EQ(BlendFactor::kOne, in TEST_F()
109 ASSERT_EQ(BlendFactor::kZero, in TEST_F()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DRenderPipelineD3D12.cpp149 D3D12_BLEND D3D12Blend(wgpu::BlendFactor factor) { in D3D12Blend()
151 case wgpu::BlendFactor::Zero: in D3D12Blend()
153 case wgpu::BlendFactor::One: in D3D12Blend()
155 case wgpu::BlendFactor::Src: in D3D12Blend()
157 case wgpu::BlendFactor::OneMinusSrc: in D3D12Blend()
159 case wgpu::BlendFactor::SrcAlpha: in D3D12Blend()
161 case wgpu::BlendFactor::OneMinusSrcAlpha: in D3D12Blend()
163 case wgpu::BlendFactor::Dst: in D3D12Blend()
165 case wgpu::BlendFactor::OneMinusDst: in D3D12Blend()
167 case wgpu::BlendFactor::DstAlpha: in D3D12Blend()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DContext.hpp183 enum BlendFactor ENUM_UNDERLYING_TYPE_UNSIGNED_INT
321 bool setSourceBlendFactor(BlendFactor sourceBlendFactor);
322 bool setDestBlendFactor(BlendFactor destBlendFactor);
326 bool setSourceBlendFactorAlpha(BlendFactor sourceBlendFactorAlpha);
327 bool setDestBlendFactorAlpha(BlendFactor destBlendFactorAlpha);
366 BlendFactor sourceBlendFactor();
367 BlendFactor destBlendFactor();
370 BlendFactor sourceBlendFactorAlpha();
371 BlendFactor destBlendFactorAlpha();
517 BlendFactor sourceBlendFactorState;
[all …]
DPixelProcessor.hpp75 BlendFactor sourceBlendFactor : BITS(BLEND_LAST);
76 BlendFactor destBlendFactor : BITS(BLEND_LAST);
78 BlendFactor sourceBlendFactorAlpha : BITS(BLEND_LAST);
79 BlendFactor destBlendFactorAlpha : BITS(BLEND_LAST);
288 void setSourceBlendFactor(BlendFactor sourceBlendFactor);
289 void setDestBlendFactor(BlendFactor destBlendFactor);
293 void setSourceBlendFactorAlpha(BlendFactor sourceBlendFactorAlpha);
294 void setDestBlendFactorAlpha(BlendFactor destBlendFactorAlpha);
DContext.cpp402 bool Context::setSourceBlendFactor(BlendFactor sourceBlendFactor) in setSourceBlendFactor()
409 bool Context::setDestBlendFactor(BlendFactor destBlendFactor) in setDestBlendFactor()
430 bool Context::setSourceBlendFactorAlpha(BlendFactor sourceBlendFactorAlpha) in setSourceBlendFactorAlpha()
437 bool Context::setDestBlendFactorAlpha(BlendFactor destBlendFactorAlpha) in setDestBlendFactorAlpha()
770 BlendFactor Context::sourceBlendFactor() in sourceBlendFactor()
791 BlendFactor Context::destBlendFactor() in destBlendFactor()
924 BlendFactor Context::sourceBlendFactorAlpha() in sourceBlendFactorAlpha()
950 BlendFactor Context::destBlendFactorAlpha() in destBlendFactorAlpha()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DRenderPipelineGL.cpp60 GLenum GLBlendFactor(wgpu::BlendFactor factor, bool alpha) { in GLBlendFactor()
62 case wgpu::BlendFactor::Zero: in GLBlendFactor()
64 case wgpu::BlendFactor::One: in GLBlendFactor()
66 case wgpu::BlendFactor::Src: in GLBlendFactor()
68 case wgpu::BlendFactor::OneMinusSrc: in GLBlendFactor()
70 case wgpu::BlendFactor::SrcAlpha: in GLBlendFactor()
72 case wgpu::BlendFactor::OneMinusSrcAlpha: in GLBlendFactor()
74 case wgpu::BlendFactor::Dst: in GLBlendFactor()
76 case wgpu::BlendFactor::OneMinusDst: in GLBlendFactor()
78 case wgpu::BlendFactor::DstAlpha: in GLBlendFactor()
[all …]
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp18 static wgpu::BlendFactor to_dawn_blend_factor(GrBlendCoeff coeff) { in to_dawn_blend_factor()
21 return wgpu::BlendFactor::Zero; in to_dawn_blend_factor()
23 return wgpu::BlendFactor::One; in to_dawn_blend_factor()
25 return wgpu::BlendFactor::Src; in to_dawn_blend_factor()
27 return wgpu::BlendFactor::OneMinusSrc; in to_dawn_blend_factor()
29 return wgpu::BlendFactor::Dst; in to_dawn_blend_factor()
31 return wgpu::BlendFactor::OneMinusDst; in to_dawn_blend_factor()
33 return wgpu::BlendFactor::SrcAlpha; in to_dawn_blend_factor()
35 return wgpu::BlendFactor::OneMinusSrcAlpha; in to_dawn_blend_factor()
37 return wgpu::BlendFactor::DstAlpha; in to_dawn_blend_factor()
[all …]
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
Dgraphics_pipeline.cc197 VkBlendFactor ToVkBlendFactor(BlendFactor factor) { in ToVkBlendFactor()
199 case BlendFactor::kZero: in ToVkBlendFactor()
201 case BlendFactor::kOne: in ToVkBlendFactor()
203 case BlendFactor::kSrcColor: in ToVkBlendFactor()
205 case BlendFactor::kOneMinusSrcColor: in ToVkBlendFactor()
207 case BlendFactor::kDstColor: in ToVkBlendFactor()
209 case BlendFactor::kOneMinusDstColor: in ToVkBlendFactor()
211 case BlendFactor::kSrcAlpha: in ToVkBlendFactor()
213 case BlendFactor::kOneMinusSrcAlpha: in ToVkBlendFactor()
215 case BlendFactor::kDstAlpha: in ToVkBlendFactor()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DRenderPipelineVk.cpp161 VkBlendFactor VulkanBlendFactor(wgpu::BlendFactor factor) { in VulkanBlendFactor()
163 case wgpu::BlendFactor::Zero: in VulkanBlendFactor()
165 case wgpu::BlendFactor::One: in VulkanBlendFactor()
167 case wgpu::BlendFactor::Src: in VulkanBlendFactor()
169 case wgpu::BlendFactor::OneMinusSrc: in VulkanBlendFactor()
171 case wgpu::BlendFactor::SrcAlpha: in VulkanBlendFactor()
173 case wgpu::BlendFactor::OneMinusSrcAlpha: in VulkanBlendFactor()
175 case wgpu::BlendFactor::Dst: in VulkanBlendFactor()
177 case wgpu::BlendFactor::OneMinusDst: in VulkanBlendFactor()
179 case wgpu::BlendFactor::DstAlpha: in VulkanBlendFactor()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DRenderPipelineMTL.mm133 MTLBlendFactor MetalBlendFactor(wgpu::BlendFactor factor, bool alpha) {
135 case wgpu::BlendFactor::Zero:
137 case wgpu::BlendFactor::One:
139 case wgpu::BlendFactor::Src:
141 case wgpu::BlendFactor::OneMinusSrc:
143 case wgpu::BlendFactor::SrcAlpha:
145 case wgpu::BlendFactor::OneMinusSrcAlpha:
147 case wgpu::BlendFactor::Dst:
149 case wgpu::BlendFactor::OneMinusDst:
151 case wgpu::BlendFactor::DstAlpha:
[all …]
/third_party/vk-gl-cts/external/amber/src/src/vkscript/
Dcommand_parser.cc1472 BlendFactor* factor) { in ParseBlendFactorName()
1476 *factor = BlendFactor::kZero; in ParseBlendFactorName()
1478 *factor = BlendFactor::kOne; in ParseBlendFactorName()
1480 *factor = BlendFactor::kSrcColor; in ParseBlendFactorName()
1482 *factor = BlendFactor::kOneMinusSrcColor; in ParseBlendFactorName()
1484 *factor = BlendFactor::kDstColor; in ParseBlendFactorName()
1486 *factor = BlendFactor::kOneMinusDstColor; in ParseBlendFactorName()
1488 *factor = BlendFactor::kSrcAlpha; in ParseBlendFactorName()
1490 *factor = BlendFactor::kOneMinusSrcAlpha; in ParseBlendFactorName()
1492 *factor = BlendFactor::kDstAlpha; in ParseBlendFactorName()
[all …]
Dcommand_parser.h67 BlendFactor* factor) { in ParseBlendFactorNameForTesting()
130 Result ParseBlendFactor(const std::string& name, BlendFactor* factor);
131 Result ParseBlendFactorName(const std::string& name, BlendFactor* factor);
Dcommand_parser_test.cc2100 EXPECT_EQ(BlendFactor::kDstColor, in TEST_F()
2112 EXPECT_EQ(BlendFactor::kDstColor, in TEST_F()
2124 EXPECT_EQ(BlendFactor::kDstColor, in TEST_F()
2136 EXPECT_EQ(BlendFactor::kDstColor, in TEST_F()
2142 BlendFactor type;
2152 BlendFactor factor = BlendFactor::kZero; in TEST_P()
2162 BlendFactorData{"VK_BLEND_FACTOR_ZERO", BlendFactor::kZero},
2163 BlendFactorData{"VK_BLEND_FACTOR_ONE", BlendFactor::kOne},
2164 BlendFactorData{"VK_BLEND_FACTOR_SRC_COLOR", BlendFactor::kSrcColor},
2166 BlendFactor::kOneMinusSrcColor},
[all …]
/third_party/vk-gl-cts/external/amber/src/src/dawn/
Dengine_dawn.cc686 ::dawn::BlendFactor GetDawnBlendFactor(::amber::BlendFactor factor) { in GetDawnBlendFactor()
688 case BlendFactor::kZero: in GetDawnBlendFactor()
689 return ::dawn::BlendFactor::Zero; in GetDawnBlendFactor()
690 case BlendFactor::kOne: in GetDawnBlendFactor()
691 return ::dawn::BlendFactor::One; in GetDawnBlendFactor()
692 case BlendFactor::kSrcColor: in GetDawnBlendFactor()
693 return ::dawn::BlendFactor::SrcColor; in GetDawnBlendFactor()
694 case BlendFactor::kOneMinusSrcColor: in GetDawnBlendFactor()
695 return ::dawn::BlendFactor::OneMinusSrcColor; in GetDawnBlendFactor()
696 case BlendFactor::kDstColor: in GetDawnBlendFactor()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DPixelRoutine.hpp77 …Vector4s &blendFactor, const Vector4s &current, const Vector4s &pixel, BlendFactor blendFactorActi…
78 …Vector4s &blendFactor, const Vector4s &current, const Vector4s &pixel, BlendFactor blendFactorAlph…
80 …void blendFactor(Vector4f &blendFactor, const Vector4f &oC, const Vector4f &pixel, BlendFactor ble…
81 …lpha(Vector4f &blendFactor, const Vector4f &oC, const Vector4f &pixel, BlendFactor blendFactorAlph…
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DConverter.cpp442 bool Converter::Convert(wgpu::BlendFactor& out, const interop::GPUBlendFactor& in) { in Convert()
443 out = wgpu::BlendFactor::Zero; in Convert()
446 out = wgpu::BlendFactor::Zero; in Convert()
449 out = wgpu::BlendFactor::One; in Convert()
452 out = wgpu::BlendFactor::Src; in Convert()
455 out = wgpu::BlendFactor::OneMinusSrc; in Convert()
458 out = wgpu::BlendFactor::SrcAlpha; in Convert()
461 out = wgpu::BlendFactor::OneMinusSrcAlpha; in Convert()
464 out = wgpu::BlendFactor::Dst; in Convert()
467 out = wgpu::BlendFactor::OneMinusDst; in Convert()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DRenderPipelineValidationTests.cpp51 bool BlendFactorContainsSrcAlpha(const wgpu::BlendFactor& blendFactor) { in BlendFactorContainsSrcAlpha()
52 return blendFactor == wgpu::BlendFactor::SrcAlpha || in BlendFactorContainsSrcAlpha()
53 blendFactor == wgpu::BlendFactor::OneMinusSrcAlpha || in BlendFactorContainsSrcAlpha()
54 blendFactor == wgpu::BlendFactor::SrcAlphaSaturated; in BlendFactorContainsSrcAlpha()
317 std::array<wgpu::BlendFactor, 8> kBlendFactors = {wgpu::BlendFactor::Zero, in TEST_F()
318 wgpu::BlendFactor::One, in TEST_F()
319 wgpu::BlendFactor::SrcAlpha, in TEST_F()
320 wgpu::BlendFactor::OneMinusSrcAlpha, in TEST_F()
321 wgpu::BlendFactor::Src, in TEST_F()
322 wgpu::BlendFactor::DstAlpha, in TEST_F()
[all …]
/third_party/skia/third_party/externals/dawn/src/utils/
DComboRenderPipelineDescriptor.cpp123 blendComponent.srcFactor = wgpu::BlendFactor::One; in ComboRenderPipelineDescriptor()
124 blendComponent.dstFactor = wgpu::BlendFactor::Zero; in ComboRenderPipelineDescriptor()
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_dx10.cpp198 FLOAT BlendFactor[4]; in ImGui_ImplDX10_RenderDrawData() member
218 ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); in ImGui_ImplDX10_RenderDrawData()
280 …ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.Ble… in ImGui_ImplDX10_RenderDrawData()
Dimgui_impl_dx11.cpp204 FLOAT BlendFactor[4]; in ImGui_ImplDX11_RenderDrawData() member
226 ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); in ImGui_ImplDX11_RenderDrawData()
290 …ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.Ble… in ImGui_ImplDX11_RenderDrawData()

12