Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions | Variables
GrGLTypesPriv.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/gpu/gl/GrGLTypes.h"

Go to the source code of this file.

Classes

class  GrGLTextureParameters
 
struct  GrGLTextureParameters::SamplerOverriddenState
 
struct  GrGLTextureParameters::NonsamplerState
 
class  GrGLBackendTextureInfo
 
struct  GrGLTextureSpec
 

Functions

GrGLSurfaceInfo GrGLTextureSpecToSurfaceInfo (const GrGLTextureSpec &glSpec, uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected)
 

Variables

static constexpr int kGrGLColorFormatCount = static_cast<int>(GrGLFormat::kLastColorFormat) + 1
 

Function Documentation

◆ GrGLTextureSpecToSurfaceInfo()

GrGLSurfaceInfo GrGLTextureSpecToSurfaceInfo ( const GrGLTextureSpec glSpec,
uint32_t  sampleCount,
uint32_t  levelCount,
skgpu::Protected  isProtected 
)

Definition at line 60 of file GrGLTypesPriv.cpp.

63 {
65 // Shared info
66 info.fSampleCount = sampleCount;
67 info.fLevelCount = levelCount;
68 info.fProtected = isProtected;
69
70 // GL info
71 info.fTarget = glSpec.fTarget;
72 info.fFormat = glSpec.fFormat;
73
74 return info;
75}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition DM.cpp:213
uint32_t fSampleCount
Definition GrGLTypes.h:211

Variable Documentation

◆ kGrGLColorFormatCount

constexpr int kGrGLColorFormatCount = static_cast<int>(GrGLFormat::kLastColorFormat) + 1
staticconstexpr

Definition at line 14 of file GrGLTypesPriv.h.