| 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 236 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 249 of file spirv_compiler.cc.

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

References type.

## ◆ Make()

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

Definition at line 238 of file spirv_compiler.cc.

239 {
240 // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
241 return std::unique_ptr<UniqueIncluder>(
242 new UniqueIncluder(std::move(includer)));
243 }

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

## ◆ ReleaseInclude()

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

Definition at line 261 of file spirv_compiler.cc.

261 {
262 return includer_->ReleaseInclude(data);
263 }
data
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:69

References data.

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

- impeller/compiler/spirv_compiler.cc