Graphics class used to contains all rendering states that are not allowed to change individually on rendering devices.
More...
Graphics class used to contains all rendering states that are not allowed to change individually on rendering devices.
◆ Apply()
const MaterialPipeline::Instance & Nz::MaterialPipeline::Apply |
( |
UInt32 |
flags = ShaderFlags_None | ) |
const |
|
inline |
Enable pipeline states for rendering.
- Parameters
-
◆ GetInfo()
const MaterialPipelineInfo & Nz::MaterialPipeline::GetInfo |
( |
| ) |
const |
|
inline |
Retrieve a MaterialPipelineInfo object describing this pipeline.
- Returns
- Pipeline informations
◆ GetInstance()
const MaterialPipeline::Instance & Nz::MaterialPipeline::GetInstance |
( |
UInt32 |
flags = ShaderFlags_None | ) |
const |
|
inline |
Retrieve (and generate if required) a pipeline instance using shader flags without applying it.
- Parameters
-
- Returns
- Pipeline instance
◆ GetPipeline()
MaterialPipelineRef Nz::MaterialPipeline::GetPipeline |
( |
const MaterialPipelineInfo & |
pipelineInfo | ) |
|
|
static |
Returns a reference to a MaterialPipeline built with MaterialPipelineInfo.
This function is using a cache, calling it multiples times with the same MaterialPipelineInfo will returns references to a single MaterialPipeline
- Parameters
-
pipelineInfo | Pipeline informations used to build/retrieve a MaterialPipeline object |
The documentation for this class was generated from the following files:
- include/Nazara/Graphics/MaterialPipeline.hpp
- include/Nazara/Graphics/MaterialPipeline.inl
- src/Nazara/Graphics/MaterialPipeline.cpp