Home
last modified time | relevance | path

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

/external/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> {
/external/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:
/external/skqp/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> {
/external/skqp/src/gpu/mtl/
DGrMtlPipelineState.mm198 MTLStencilOperation skia_stencil_op_to_mtl(GrStencilOp op) {
200 case GrStencilOp::kKeep:
202 case GrStencilOp::kZero:
204 case GrStencilOp::kReplace:
206 case GrStencilOp::kInvert:
208 case GrStencilOp::kIncWrap:
210 case GrStencilOp::kDecWrap:
212 case GrStencilOp::kIncClamp:
214 case GrStencilOp::kDecClamp:
/external/skqp/src/gpu/vk/
DGrVkPipeline.cpp174 static VkStencilOp stencil_op_to_vk_stencil_op(GrStencilOp op) { in stencil_op_to_vk_stencil_op()
186 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in stencil_op_to_vk_stencil_op()
187 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in stencil_op_to_vk_stencil_op()
188 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in stencil_op_to_vk_stencil_op()
189 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in stencil_op_to_vk_stencil_op()
190 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in stencil_op_to_vk_stencil_op()
191 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in stencil_op_to_vk_stencil_op()
192 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in stencil_op_to_vk_stencil_op()
193 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in stencil_op_to_vk_stencil_op()
194 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in stencil_op_to_vk_stencil_op()
/external/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()
/external/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp401 static D3D12_STENCIL_OP stencil_op_to_d3d_op(GrStencilOp op) { in stencil_op_to_d3d_op()
403 case GrStencilOp::kKeep: in stencil_op_to_d3d_op()
405 case GrStencilOp::kZero: in stencil_op_to_d3d_op()
407 case GrStencilOp::kReplace: in stencil_op_to_d3d_op()
409 case GrStencilOp::kInvert: in stencil_op_to_d3d_op()
411 case GrStencilOp::kIncWrap: in stencil_op_to_d3d_op()
413 case GrStencilOp::kDecWrap: in stencil_op_to_d3d_op()
415 case GrStencilOp::kIncClamp: in stencil_op_to_d3d_op()
417 case GrStencilOp::kDecClamp: in stencil_op_to_d3d_op()
/external/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp107 static wgpu::StencilOperation to_dawn_stencil_operation(GrStencilOp op) { in to_dawn_stencil_operation()
109 case GrStencilOp::kKeep: in to_dawn_stencil_operation()
111 case GrStencilOp::kZero: in to_dawn_stencil_operation()
113 case GrStencilOp::kReplace: in to_dawn_stencil_operation()
115 case GrStencilOp::kInvert: in to_dawn_stencil_operation()
117 case GrStencilOp::kIncClamp: in to_dawn_stencil_operation()
119 case GrStencilOp::kDecClamp: in to_dawn_stencil_operation()
121 case GrStencilOp::kIncWrap: in to_dawn_stencil_operation()
123 case GrStencilOp::kDecWrap: in to_dawn_stencil_operation()
/external/skqp/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.cpp2731 GrGLenum gr_to_gl_stencil_op(GrStencilOp op) { in gr_to_gl_stencil_op()
2742 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in gr_to_gl_stencil_op()
2743 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in gr_to_gl_stencil_op()
2744 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in gr_to_gl_stencil_op()
2745 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in gr_to_gl_stencil_op()
2746 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in gr_to_gl_stencil_op()
2747 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in gr_to_gl_stencil_op()
2748 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in gr_to_gl_stencil_op()
2749 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in gr_to_gl_stencil_op()
2750 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in gr_to_gl_stencil_op()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2386 GrGLenum gr_to_gl_stencil_op(GrStencilOp op) { in gr_to_gl_stencil_op()
2397 static_assert(0 == (int)GrStencilOp::kKeep); in gr_to_gl_stencil_op()
2398 static_assert(1 == (int)GrStencilOp::kZero); in gr_to_gl_stencil_op()
2399 static_assert(2 == (int)GrStencilOp::kReplace); in gr_to_gl_stencil_op()
2400 static_assert(3 == (int)GrStencilOp::kInvert); in gr_to_gl_stencil_op()
2401 static_assert(4 == (int)GrStencilOp::kIncWrap); in gr_to_gl_stencil_op()
2402 static_assert(5 == (int)GrStencilOp::kDecWrap); in gr_to_gl_stencil_op()
2403 static_assert(6 == (int)GrStencilOp::kIncClamp); in gr_to_gl_stencil_op()
2404 static_assert(7 == (int)GrStencilOp::kDecClamp); in gr_to_gl_stencil_op()
2405 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in gr_to_gl_stencil_op()