Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrMtlRenderTarget.mm File Reference
#include "src/gpu/ganesh/mtl/GrMtlRenderTarget.h"
#include "include/gpu/ganesh/mtl/GrMtlBackendSurface.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrResourceProvider.h"
#include "src/gpu/ganesh/mtl/GrMtlFramebuffer.h"
#include "src/gpu/ganesh/mtl/GrMtlGpu.h"
#include "src/gpu/ganesh/mtl/GrMtlUtil.h"

Go to the source code of this file.

Functions

static int renderpass_features_to_index (bool hasResolve, bool hasStencil)
 

Function Documentation

◆ renderpass_features_to_index()

static int renderpass_features_to_index ( bool  hasResolve,
bool  hasStencil 
)
static

Definition at line 118 of file GrMtlRenderTarget.mm.

118 {
119 int index = 0;
120 if (hasResolve) {
121 index += 1;
122 }
123 if (hasStencil) {
124 index += 2;
125 }
126 return index;
127}