Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 164 of file SkSLUtil.h.

Member Function Documentation

◆ Default()

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

Definition at line 166 of file SkSLUtil.h.

166 {
167 static const SkSL::ShaderCaps* sCaps = [] {
168 std::unique_ptr<ShaderCaps> caps = MakeShaderCaps();
169 caps->fVersionDeclString = "#version 400";
170 caps->fShaderDerivativeSupport = true;
171 return caps.release();
172 }();
173 return sCaps;
174 }
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 return standalone;
34}

◆ Standalone()

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

Definition at line 176 of file SkSLUtil.h.

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

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