#include <compiler_backend.h>
Public Types | |
| enum class | Type { kMSL , kGLSL , kGLSLVulkan , kSkSL } |
| enum class | ExtendedResourceIndex { kPrimary , kSecondary } |
| using | MSLCompiler = std::shared_ptr< spirv_cross::CompilerMSL > |
| using | GLSLCompiler = std::shared_ptr< spirv_cross::CompilerGLSL > |
| using | SkSLCompiler = std::shared_ptr< CompilerSkSL > |
| using | Compiler = std::variant< MSLCompiler, GLSLCompiler, SkSLCompiler > |
Public Member Functions | |
| CompilerBackend (MSLCompiler compiler) | |
| CompilerBackend (GLSLCompiler compiler) | |
| CompilerBackend (SkSLCompiler compiler) | |
| CompilerBackend (Type type, Compiler compiler) | |
| CompilerBackend () | |
| ~CompilerBackend () | |
| Type | GetType () const |
| const spirv_cross::Compiler * | operator-> () const |
| spirv_cross::Compiler * | GetCompiler () |
| operator bool () const | |
| uint32_t | GetExtendedMSLResourceBinding (ExtendedResourceIndex index, spirv_cross::ID id) const |
| const spirv_cross::Compiler * | GetCompiler () const |
Definition at line 19 of file compiler_backend.h.
| using impeller::compiler::CompilerBackend::Compiler = std::variant<MSLCompiler, GLSLCompiler, SkSLCompiler> |
Definition at line 23 of file compiler_backend.h.
| using impeller::compiler::CompilerBackend::GLSLCompiler = std::shared_ptr<spirv_cross::CompilerGLSL> |
Definition at line 21 of file compiler_backend.h.
| using impeller::compiler::CompilerBackend::MSLCompiler = std::shared_ptr<spirv_cross::CompilerMSL> |
Definition at line 20 of file compiler_backend.h.
| using impeller::compiler::CompilerBackend::SkSLCompiler = std::shared_ptr<CompilerSkSL> |
Definition at line 22 of file compiler_backend.h.
|
strong |
| Enumerator | |
|---|---|
| kPrimary | |
| kSecondary | |
Definition at line 52 of file compiler_backend.h.
|
strong |
| Enumerator | |
|---|---|
| kMSL | |
| kGLSL | |
| kGLSLVulkan | |
| kSkSL | |
Definition at line 25 of file compiler_backend.h.
|
explicit |
Definition at line 12 of file compiler_backend.cc.
|
explicit |
Definition at line 15 of file compiler_backend.cc.
|
explicit |
Definition at line 21 of file compiler_backend.cc.
Definition at line 26 of file compiler_backend.cc.
|
default |
|
default |
| spirv_cross::Compiler * impeller::compiler::CompilerBackend::GetCompiler | ( | ) |
Definition at line 70 of file compiler_backend.cc.
Referenced by impeller::compiler::CreateCompiler(), and operator->().
| const spirv_cross::Compiler * impeller::compiler::CompilerBackend::GetCompiler | ( | ) | const |
Definition at line 54 of file compiler_backend.cc.
| uint32_t impeller::compiler::CompilerBackend::GetExtendedMSLResourceBinding | ( | ExtendedResourceIndex | index, |
| spirv_cross::ID | id | ||
| ) | const |
Definition at line 35 of file compiler_backend.cc.
References kPrimary, and kSecondary.
| CompilerBackend::Type impeller::compiler::CompilerBackend::GetType | ( | ) | const |
Definition at line 108 of file compiler_backend.cc.
|
explicit |
Definition at line 104 of file compiler_backend.cc.
| const spirv_cross::Compiler * impeller::compiler::CompilerBackend::operator-> | ( | ) | const |
Definition at line 31 of file compiler_backend.cc.
References GetCompiler().