ShaderBase *const Hatchit::Graphics::Shader::GetBase |
( |
| ) |
const |
Gets a pointer to the ShaderBase that this class wraps.
- Returns
- A poiner to the ShaderBase object that this class wraps.
bool Hatchit::Graphics::Shader::Initialize |
( |
const std::string & |
file | ) |
|
Initialize a Shader with the GPUResourcePool.
This initialization step takes place on the GPUResourceThread but LOCKS the main thread. An InitializeAsync method should be used for asynchronous requests. If the pool is already in use we will assume that the request is made inside the thread and the Shader will be created immediately.
- Parameters
-
file | The file path to the shader we want to load from disk |
- Returns
- A boolean representing whether or not this operation succeeded
The documentation for this class was generated from the following files: