#include <shaderCompiler.h>
|
| bool | reflect (const std::vector< uint32_t > &shaderData, bool reflect) |
| | reflects on the compiled shader and shows a text based dissasambly of the shader. More...
|
| |
| std::string | getResourceTypeName (const spirv_cross::Resource &resource, const spirv_cross::Compiler &compiler) |
| | returns the resource type name ex mat4 returns "Mat4". More...
|
| |
◆ shaderCompiler()
| luna::utils::shaderCompiler::shaderCompiler |
( |
| ) |
|
constructor does nothing at the moment.
◆ ~shaderCompiler()
| virtual luna::utils::shaderCompiler::~shaderCompiler |
( |
| ) |
|
|
inlinevirtual |
◆ compile()
| std::vector< uint32_t > luna::utils::shaderCompiler::compile |
( |
compileSpec |
compileSpec | ) |
|
compile a shader from source GLSL to specified.
- Parameters
-
- Returns
- compiled shadersource.
◆ getResourceTypeName()
| std::string luna::utils::shaderCompiler::getResourceTypeName |
( |
const spirv_cross::Resource & |
resource, |
|
|
const spirv_cross::Compiler & |
compiler |
|
) |
| |
|
private |
returns the resource type name ex mat4 returns "Mat4".
- Parameters
-
| resource | to get the typename of. |
| compiler | the compiler wich contains the compiled shader. |
- Returns
- the type name of the resource as an std::string.
◆ reflect()
| bool luna::utils::shaderCompiler::reflect |
( |
const std::vector< uint32_t > & |
shaderData, |
|
|
bool |
reflect |
|
) |
| |
|
private |
reflects on the compiled shader and shows a text based dissasambly of the shader.
- Parameters
-
| shaderData | compiled shaderData. |
| reflect | reflect yes or no. |
- Returns
- param reflect.
The documentation for this class was generated from the following files: