Home
last modified time | relevance | path

Searched refs:GrStencilOp (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/src/gpu/
DGrStencilSettings.cpp135 static constexpr GrStencilOp gUserStencilOpToRaw[kGrUserStencilOpCount] = {
136 GrStencilOp::kKeep,
139 GrStencilOp::kZero,
140 GrStencilOp::kReplace,
141 GrStencilOp::kInvert,
142 GrStencilOp::kIncWrap,
143 GrStencilOp::kDecWrap,
144 GrStencilOp::kIncClamp, // kIncMaybeClamp.
145 GrStencilOp::kDecClamp, // kDecMaybeClamp.
148 GrStencilOp::kZero, // kZeroClipBit.
[all …]
DGrStencilSettings.h29 enum class GrStencilOp : uint8_t { enum
41 static constexpr int kGrStencilOpCount = 1 + (int)GrStencilOp::kDecClamp;
76 struct Face : public GrTStencilFaceSettings<GrStencilTest, GrStencilOp> {
/third_party/skia/src/gpu/mtl/
DGrMtlDepthStencil.mm18 MTLStencilOperation skia_stencil_op_to_mtl(GrStencilOp op) {
20 case GrStencilOp::kKeep:
22 case GrStencilOp::kZero:
24 case GrStencilOp::kReplace:
26 case GrStencilOp::kInvert:
28 case GrStencilOp::kIncWrap:
30 case GrStencilOp::kDecWrap:
32 case GrStencilOp::kIncClamp:
34 case GrStencilOp::kDecClamp:
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlDepthStencil.mm16 MTLStencilOperation skia_stencil_op_to_mtl(GrStencilOp op) {
18 case GrStencilOp::kKeep:
20 case GrStencilOp::kZero:
22 case GrStencilOp::kReplace:
24 case GrStencilOp::kInvert:
26 case GrStencilOp::kIncWrap:
28 case GrStencilOp::kDecWrap:
30 case GrStencilOp::kIncClamp:
32 case GrStencilOp::kDecClamp:
/third_party/flutter/skia/src/gpu/
DGrStencilSettings.cpp135 static constexpr GrStencilOp gUserStencilOpToRaw[kGrUserStencilOpCount] = {
136 GrStencilOp::kKeep,
139 GrStencilOp::kZero,
140 GrStencilOp::kReplace,
141 GrStencilOp::kInvert,
142 GrStencilOp::kIncWrap,
143 GrStencilOp::kDecWrap,
144 GrStencilOp::kIncClamp, // kIncMaybeClamp.
145 GrStencilOp::kDecClamp, // kDecMaybeClamp.
148 GrStencilOp::kZero, // kZeroClipBit.
[all …]
DGrStencilSettings.h29 enum class GrStencilOp : uint8_t { enum
41 static constexpr int kGrStencilOpCount = 1 + (int)GrStencilOp::kDecClamp;
76 struct Face : public GrTStencilFaceSettings<GrStencilTest, GrStencilOp> {
/third_party/flutter/skia/src/gpu/vk/
DGrVkPipeline.cpp181 static VkStencilOp stencil_op_to_vk_stencil_op(GrStencilOp op) { in stencil_op_to_vk_stencil_op()
193 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in stencil_op_to_vk_stencil_op()
194 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in stencil_op_to_vk_stencil_op()
195 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in stencil_op_to_vk_stencil_op()
196 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in stencil_op_to_vk_stencil_op()
197 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in stencil_op_to_vk_stencil_op()
198 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in stencil_op_to_vk_stencil_op()
199 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in stencil_op_to_vk_stencil_op()
200 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in stencil_op_to_vk_stencil_op()
201 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in stencil_op_to_vk_stencil_op()
/third_party/skia/src/gpu/vk/
DGrVkPipeline.cpp179 static VkStencilOp stencil_op_to_vk_stencil_op(GrStencilOp op) { in stencil_op_to_vk_stencil_op()
191 static_assert(0 == (int)GrStencilOp::kKeep); in stencil_op_to_vk_stencil_op()
192 static_assert(1 == (int)GrStencilOp::kZero); in stencil_op_to_vk_stencil_op()
193 static_assert(2 == (int)GrStencilOp::kReplace); in stencil_op_to_vk_stencil_op()
194 static_assert(3 == (int)GrStencilOp::kInvert); in stencil_op_to_vk_stencil_op()
195 static_assert(4 == (int)GrStencilOp::kIncWrap); in stencil_op_to_vk_stencil_op()
196 static_assert(5 == (int)GrStencilOp::kDecWrap); in stencil_op_to_vk_stencil_op()
197 static_assert(6 == (int)GrStencilOp::kIncClamp); in stencil_op_to_vk_stencil_op()
198 static_assert(7 == (int)GrStencilOp::kDecClamp); in stencil_op_to_vk_stencil_op()
199 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in stencil_op_to_vk_stencil_op()
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp398 static D3D12_STENCIL_OP stencil_op_to_d3d_op(GrStencilOp op) { in stencil_op_to_d3d_op()
400 case GrStencilOp::kKeep: in stencil_op_to_d3d_op()
402 case GrStencilOp::kZero: in stencil_op_to_d3d_op()
404 case GrStencilOp::kReplace: in stencil_op_to_d3d_op()
406 case GrStencilOp::kInvert: in stencil_op_to_d3d_op()
408 case GrStencilOp::kIncWrap: in stencil_op_to_d3d_op()
410 case GrStencilOp::kDecWrap: in stencil_op_to_d3d_op()
412 case GrStencilOp::kIncClamp: in stencil_op_to_d3d_op()
414 case GrStencilOp::kDecClamp: in stencil_op_to_d3d_op()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp130 static dawn::StencilOperation to_dawn_stencil_operation(GrStencilOp op) { in to_dawn_stencil_operation()
132 case GrStencilOp::kKeep: in to_dawn_stencil_operation()
134 case GrStencilOp::kZero: in to_dawn_stencil_operation()
136 case GrStencilOp::kReplace: in to_dawn_stencil_operation()
138 case GrStencilOp::kInvert: in to_dawn_stencil_operation()
140 case GrStencilOp::kIncClamp: in to_dawn_stencil_operation()
142 case GrStencilOp::kDecClamp: in to_dawn_stencil_operation()
144 case GrStencilOp::kIncWrap: in to_dawn_stencil_operation()
146 case GrStencilOp::kDecWrap: in to_dawn_stencil_operation()
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp108 static wgpu::StencilOperation to_dawn_stencil_operation(GrStencilOp op) { in to_dawn_stencil_operation()
110 case GrStencilOp::kKeep: in to_dawn_stencil_operation()
112 case GrStencilOp::kZero: in to_dawn_stencil_operation()
114 case GrStencilOp::kReplace: in to_dawn_stencil_operation()
116 case GrStencilOp::kInvert: in to_dawn_stencil_operation()
118 case GrStencilOp::kIncClamp: in to_dawn_stencil_operation()
120 case GrStencilOp::kDecClamp: in to_dawn_stencil_operation()
122 case GrStencilOp::kIncWrap: in to_dawn_stencil_operation()
124 case GrStencilOp::kDecWrap: in to_dawn_stencil_operation()
/third_party/flutter/skia/src/gpu/gl/
DGrGLPathRendering.cpp42 static GrGLenum gr_stencil_op_to_gl_path_rendering_fill_mode(GrStencilOp op) { in gr_stencil_op_to_gl_path_rendering_fill_mode()
47 case GrStencilOp::kIncWrap: in gr_stencil_op_to_gl_path_rendering_fill_mode()
49 case GrStencilOp::kInvert: in gr_stencil_op_to_gl_path_rendering_fill_mode()
DGrGLGpu.cpp2609 GrGLenum gr_to_gl_stencil_op(GrStencilOp op) { in gr_to_gl_stencil_op()
2620 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in gr_to_gl_stencil_op()
2621 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in gr_to_gl_stencil_op()
2622 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in gr_to_gl_stencil_op()
2623 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in gr_to_gl_stencil_op()
2624 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in gr_to_gl_stencil_op()
2625 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in gr_to_gl_stencil_op()
2626 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in gr_to_gl_stencil_op()
2627 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in gr_to_gl_stencil_op()
2628 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in gr_to_gl_stencil_op()
/third_party/skia/src/gpu/gl/
DGrGLGpu.cpp2422 GrGLenum gr_to_gl_stencil_op(GrStencilOp op) { in gr_to_gl_stencil_op()
2433 static_assert(0 == (int)GrStencilOp::kKeep); in gr_to_gl_stencil_op()
2434 static_assert(1 == (int)GrStencilOp::kZero); in gr_to_gl_stencil_op()
2435 static_assert(2 == (int)GrStencilOp::kReplace); in gr_to_gl_stencil_op()
2436 static_assert(3 == (int)GrStencilOp::kInvert); in gr_to_gl_stencil_op()
2437 static_assert(4 == (int)GrStencilOp::kIncWrap); in gr_to_gl_stencil_op()
2438 static_assert(5 == (int)GrStencilOp::kDecWrap); in gr_to_gl_stencil_op()
2439 static_assert(6 == (int)GrStencilOp::kIncClamp); in gr_to_gl_stencil_op()
2440 static_assert(7 == (int)GrStencilOp::kDecClamp); in gr_to_gl_stencil_op()
2441 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in gr_to_gl_stencil_op()