Lugdunum  0.1.0
Pipeline.inl
Go to the documentation of this file.
1 inline Pipeline::Id Pipeline::getId() const {
2  return _id;
3 }
4 
5 inline Pipeline::Id Pipeline::getBaseId() {
6  Pipeline::Id::PrimitivePart primitivePart;
7  primitivePart.positionVertexData = 1;
8  primitivePart.normalVertexData = 1;
9  primitivePart.tangentVertexData = 0;
10  primitivePart.countTexCoord = 0;
11  primitivePart.countColor = 0;
12  primitivePart.primitiveMode = 4; // Triangles
13 
14  Pipeline::Id::MaterialPart materialPart;
15  materialPart.baseColorInfo = 0b11; // No texture
16  materialPart.metallicRoughnessInfo = 0b11; // No texture
17  materialPart.normalInfo = 0b11; // No texture
18  materialPart.occlusionInfo = 0b11; // No texture
19  materialPart.emissiveInfo = 0b11; // No texture
20 
21  Pipeline::Id::ExtraPart extraPart;
22  extraPart.displayMode = 0;
23  extraPart.irradianceMapInfo = 0; // No texture
24  extraPart.prefilteredMapInfo = 0; // No texture
25 
26  return Pipeline::Id::create(primitivePart, materialPart, extraPart);
27 }
28 
29 inline const API::GraphicsPipeline& Pipeline::getPipelineAPI() {
30  return _pipeline;
31 }
Id of the Pipeline. It's a concatenation of three parts: PrimitivePart, MaterialPart and PipelinePart...
Definition: Pipeline.hpp:33
Describes the material. How is the material composed, with textures, no textures, etc...
Definition: Pipeline.hpp:61
uint32_t occlusionInfo
0b00 texture with UV0, 0b01 texture with UV1, 0b10 texture with UV2, 0b11 no texture.
Definition: Pipeline.hpp:67
uint32_t countColor
The number of colors (maximum 3).
Definition: Pipeline.hpp:44
uint32_t baseColorInfo
0b00 texture with UV0, 0b01 texture with UV1, 0b10 texture with UV2, 0b11 no texture.
Definition: Pipeline.hpp:64
uint32_t positionVertexData
0 if no attribute position.
Definition: Pipeline.hpp:40
uint32_t irradianceMapInfo
1 texture, 0 no texture.
Definition: Pipeline.hpp:83
uint32_t displayMode
Corresponding to the value in Renderer::DisplayMode.
Definition: Pipeline.hpp:82
uint32_t emissiveInfo
0b00 texture with UV0, 0b01 texture with UV1, 0b10 texture with UV2, 0b11 no texture.
Definition: Pipeline.hpp:68
uint32_t normalVertexData
0 if no attribute normal.
Definition: Pipeline.hpp:41
uint32_t metallicRoughnessInfo
0b00 texture with UV0, 0b01 texture with UV1, 0b10 texture with UV2, 0b11 no texture.
Definition: Pipeline.hpp:65
uint32_t prefilteredMapInfo
1 texture, 0 no texture
Definition: Pipeline.hpp:84
uint32_t normalInfo
0b00 texture with UV0, 0b01 texture with UV1, 0b10 texture with UV2, 0b11 no texture.
Definition: Pipeline.hpp:66
uint32_t tangentVertexData
0 if no attribute tangeant.
Definition: Pipeline.hpp:42
uint32_t countTexCoord
The number of texcoord (maximum 3).
Definition: Pipeline.hpp:43