| Flutter Impeller |

Public Member Functions | Static Public Member Functions | List of all members
impeller::compiler::UniqueIncluder Class Referencefinal

Wraps a shared includer so unique includers may be created to satisfy the shaderc API. This is a simple proxy object and does nothing. More...

Inheritance diagram for impeller::compiler::UniqueIncluder:

## Public Member Functions
| ~UniqueIncluder ()=default
shaderc_include_result * | GetInclude (const char *requested_source, shaderc_include_type type, const char *requesting_source, size_t include_depth) override
void | ReleaseInclude (shaderc_include_result *data) override

## Static Public Member Functions
static std::unique_ptr< UniqueIncluder > | Make (std::shared_ptr< Includer > includer)

## Detailed Description

Wraps a shared includer so unique includers may be created to satisfy the shaderc API. This is a simple proxy object and does nothing.

Definition at line 235 of file spirv_compiler.cc.

## Constructor & Destructor Documentation

## ◆ ~UniqueIncluder()

impeller::compiler::UniqueIncluder::~UniqueIncluder | ( |  | ) |
| default

## Member Function Documentation

## ◆ GetInclude()

shaderc_include_result* impeller::compiler::UniqueIncluder::GetInclude | ( | const char * | requested_source,
|  | shaderc_include_type | type,
|  | const char * | requesting_source,
|  | size_t | include_depth
| ) |  |
| inline override

Definition at line 247 of file spirv_compiler.cc.

250 {
251 return includer_->GetInclude(requested_source, //
252 type, //
253 requesting_source, //
254 include_depth //
255 );
256 }
type
GLenum type
Definition: blit_command_gles.cc:151

References type.

## ◆ Make()

static std::unique_ptr<UniqueIncluder> impeller::compiler::UniqueIncluder::Make | ( | std::shared_ptr< Includer > | includer | ) |
| inline static

Definition at line 237 of file spirv_compiler.cc.

238 {
239 return std::unique_ptr<UniqueIncluder>(
240 new UniqueIncluder(std::move(includer)));
241 }

Referenced by impeller::compiler::SPIRVCompilerOptions::BuildShadercOptions().

## ◆ ReleaseInclude()

void impeller::compiler::UniqueIncluder::ReleaseInclude | ( | shaderc_include_result * | data | ) |
| inline override

Definition at line 259 of file spirv_compiler.cc.

259 {
260 return includer_->ReleaseInclude(data);
261 }
data
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:64

References data.

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

- impeller/compiler/spirv_compiler.cc