#include <GrMtlDepthStencil.h>
Definition at line 22 of file GrMtlDepthStencil.h.
◆ ~GrMtlDepthStencil()
GrMtlDepthStencil::~GrMtlDepthStencil |
( |
| ) |
|
|
inlineoverride |
◆ Create()
Definition at line 74 of file GrMtlDepthStencil.mm.
76 {
77 MTLDepthStencilDescriptor*
desc = [[MTLDepthStencilDescriptor alloc]
init];
82 }
83 else {
85 desc.backFaceStencil =
desc.frontFaceStencil;
86 }
87 }
88
91}
MTLStencilDescriptor * skia_stencil_to_mtl(GrStencilSettings::Face face)
static Key GenerateKey(const GrStencilSettings &, GrSurfaceOrigin)
id< MTLDevice > device() const
const Face & postOriginCCWFace(GrSurfaceOrigin origin) const
const Face & singleSidedFace() const
const Face & postOriginCWFace(GrSurfaceOrigin origin) const
◆ freeGPUData()
void GrMtlDepthStencil::freeGPUData |
( |
| ) |
const |
|
inlineoverridevirtual |
Must be implemented by any subclasses. Deletes any GPU data associated with this resource
Implements GrManagedResource.
Definition at line 66 of file GrMtlDepthStencil.h.
66 {
67 fMtlDepthStencilState = nil;
68 }
◆ GenerateKey()
Definition at line 110 of file GrMtlDepthStencil.mm.
111 {
113
115 memset(&depthStencilKey, 0,
sizeof(
Key));
116 } else {
120 }
121 else {
123 memcpy(&depthStencilKey.fBack, &depthStencilKey.fFront, sizeof(Key::Face));
124 }
125 }
126
127 return depthStencilKey;
128}
void skia_stencil_to_key(GrStencilSettings::Face face, GrMtlDepthStencil::Key::Face *faceKey)
◆ GetKey()
◆ Hash()
static uint32_t GrMtlDepthStencil::Hash |
( |
const Key & |
key | ) |
|
|
inlinestatic |
Definition at line 53 of file GrMtlDepthStencil.h.
53 {
55 }
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
◆ mtlDepthStencil()
id< MTLDepthStencilState > GrMtlDepthStencil::mtlDepthStencil |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: