Parser::compileFragmentShader - dpw105f18/papago-api GitHub Wiki
Compile Fragment Shader from string
std::unique_ptr<IFragmentShader> compileFragmentShader(
const std::string& source,
const std::string& entryPoint)
This function takes in the source code for a fragment shader in GLSL and compiles it into SPIR-V bytecode, while also reading the bindings and includes them in the IFragmentShader object, which is later used by the IRenderPass.
Returns
Returns a unique pointer to an IFragmentShader Object.
Parameters
| Parameter | Description |
|---|---|
| source | the fragment shaders source code in GLSL |
| entryPoint | entry function name in the fragment shader program |