#include <Shader.h>
The ShaderBuilder class can be used to extend the default Shader.
◆ createShared()
virtual ShaderPtr prtx::ShaderBuilder::createShared |
( |
std::wstring * |
warnings = 0 | ) |
const |
|
virtual |
Creates an instance of type C based on the current builder state. Does not modify the builder state.
- Parameters
-
[out] | warnings | If warnings != 0, a builder implementation may emit warnings about the creation process. |
- Returns
- Shared pointer to a new instance of type C.
Implements prtx::SharedPtrBuilder< Shader >.
◆ createSharedAndReset()
virtual ShaderPtr prtx::ShaderBuilder::createSharedAndReset |
( |
std::wstring * |
warnings = 0 | ) |
|
|
virtual |
Creates and instance of type C based on the current builder state. Resets the builder state at the end.
- Parameters
-
[out] | warnings | If warnings != 0, a builder implementation may emit warnings about the creation process. |
- Returns
- Shared pointer to a new instance of type C.
Implements prtx::SharedPtrBuilder< Shader >.
The documentation for this class was generated from the following file: