Flutter Engine
The Flutter Engine
Static Public Member Functions | Static Protected Member Functions | List of all members
SkSL::ShaderCapsFactory Class Reference

#include <SkSLUtil.h>

Inheritance diagram for SkSL::ShaderCapsFactory:
ShaderCapsTestFactory

Static Public Member Functions

static const ShaderCapsDefault ()
 
static const ShaderCapsStandalone ()
 

Static Protected Member Functions

static std::unique_ptr< ShaderCapsMakeShaderCaps ()
 

Detailed Description

Definition at line 166 of file SkSLUtil.h.

Member Function Documentation

◆ Default()

static const ShaderCaps * SkSL::ShaderCapsFactory::Default ( )
inlinestatic

Definition at line 168 of file SkSLUtil.h.

168 {
169 static const SkSL::ShaderCaps* sCaps = [] {
170 std::unique_ptr<ShaderCaps> caps = MakeShaderCaps();
171 caps->fVersionDeclString = "#version 400";
172 caps->fShaderDerivativeSupport = true;
173 return caps.release();
174 }();
175 return sCaps;
176 }
static std::unique_ptr< ShaderCaps > MakeShaderCaps()
Definition: SkSLUtil.cpp:25

◆ MakeShaderCaps()

std::unique_ptr< ShaderCaps > SkSL::ShaderCapsFactory::MakeShaderCaps ( )
staticprotected

Definition at line 25 of file SkSLUtil.cpp.

25 {
26 std::unique_ptr<ShaderCaps> standalone = std::make_unique<ShaderCaps>();
27 standalone->fShaderDerivativeSupport = true;
28 standalone->fExplicitTextureLodSupport = true;
29 standalone->fFlatInterpolationSupport = true;
30 standalone->fNoPerspectiveInterpolationSupport = true;
31 standalone->fSampleMaskSupport = true;
32 standalone->fExternalTextureSupport = true;
33 standalone->fFloatBufferArrayName = "floatData";
34 return standalone;
35}

◆ Standalone()

static const ShaderCaps * SkSL::ShaderCapsFactory::Standalone ( )
inlinestatic

Definition at line 178 of file SkSLUtil.h.

178 {
179 static const SkSL::ShaderCaps* sCaps = MakeShaderCaps().release();
180 return sCaps;
181 }

The documentation for this class was generated from the following files: