|
Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
Public 成员函数 | |
| VKShader (const Descriptor &desc) | |
| VkShaderModule | get_handle () |
Public 成员函数 继承自 Shader | |
| const std::string & | get_name () const noexcept |
| 获取名称. | |
| const std::string & | get_entry_point () const noexcept |
| 获取入口点名称. | |
| Stage | get_stage () const noexcept |
| 获取阶段. | |
额外继承的成员函数 | |
Public 类型 继承自 Shader | |
| enum class | Stage { Vertex , Fragment , Pixel = Fragment , Geometry , Compute } |
| 着色器阶段. 更多... | |
静态 Public 成员函数 继承自 Shader | |
| static std::shared_ptr< Shader > | create (const Descriptor &desc) |
| 创建着色器阶段. 更多... | |
Protected 成员函数 继承自 Shader | |
| Shader (const Descriptor &desc) | |
| std::vector< uint32_t > | get_code (std::filesystem::path path) |
| 获取 SPIR-V 代码, 若未编译则先进行编译. | |
| void | compile (const std::filesystem::path &sourcePath, const std::filesystem::path &targetPath, Stage stage) |
| 将 GLSL 编译为 SPIR-V. 更多... | |
| void | parse (const std::vector< uint32_t > &buf) |
| 将 GLSL 编译为 SPIR-V. 更多... | |
Protected 属性 继承自 Shader | |
| std::string | name_ |
| std::string | entry_point_ |
| Stage | stage_ |