Flutter Engine
The Flutter Engine
Classes | Namespaces | Enumerations | Variables
GrStencilSettings.h File Reference
#include "include/gpu/GrTypes.h"
#include "include/private/base/SkAssert.h"
#include "src/gpu/ganesh/GrUserStencilSettings.h"
#include <cstdint>

Go to the source code of this file.

Classes

class  GrStencilSettings
 
struct  GrStencilSettings::Face
 

Namespaces

namespace  skgpu
 

Enumerations

enum class  GrStencilTest : uint16_t {
  kAlways , kNever , kGreater , kGEqual ,
  kLess , kLEqual , kEqual , kNotEqual
}
 
enum class  GrStencilOp : uint8_t {
  kKeep , kZero , kReplace , kInvert ,
  kIncWrap , kDecWrap , kIncClamp , kDecClamp
}
 

Variables

static constexpr int kGrStencilTestCount = 1 + (int)GrStencilTest::kNotEqual
 
static constexpr int kGrStencilOpCount = 1 + (int)GrStencilOp::kDecClamp
 

Enumeration Type Documentation

◆ GrStencilOp

enum class GrStencilOp : uint8_t
strong
Enumerator
kKeep 
kZero 
kReplace 
kInvert 
kIncWrap 
kDecWrap 
kIncClamp 
kDecClamp 

Definition at line 32 of file GrStencilSettings.h.

32 : uint8_t {
33 kKeep,
34 kZero,
35 kReplace, // Replace stencil value with fRef (only the bits enabled in fWriteMask).
36 kInvert,
39 // NOTE: clamping occurs before the write mask. So if the MSB is zero and masked out, stencil
40 // values will still wrap when using clamping ops.
43};
@ kInvert
Perform a logical bitwise invert on the current stencil value.
@ kKeep
Don't modify the current stencil value.

◆ GrStencilTest

enum class GrStencilTest : uint16_t
strong
Enumerator
kAlways 
kNever 
kGreater 
kGEqual 
kLess 
kLEqual 
kEqual 
kNotEqual 

Definition at line 20 of file GrStencilSettings.h.

20 : uint16_t {
21 kAlways,
22 kNever,
24 kGEqual,
25 kLess,
26 kLEqual,
27 kEqual,
29};
constexpr auto kNever
Definition: SkSLTest.cpp:963
@ kAlways
Comparison test passes always passes.
@ kLess
Comparison test passes if new_value < current_value.
@ kGreater
Comparison test passes if new_value > current_value.

Variable Documentation

◆ kGrStencilOpCount

constexpr int kGrStencilOpCount = 1 + (int)GrStencilOp::kDecClamp
staticconstexpr

Definition at line 44 of file GrStencilSettings.h.

◆ kGrStencilTestCount

constexpr int kGrStencilTestCount = 1 + (int)GrStencilTest::kNotEqual
staticconstexpr

Definition at line 30 of file GrStencilSettings.h.