Overte C++ Documentation
ParseMaterialMappingTask.h
1 //
2 // Created by Sam Gondelman on 2/7/2019
3 // Copyright 2019 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #ifndef hifi_ParseMaterialMappingTask_h
10 #define hifi_ParseMaterialMappingTask_h
11 
12 #include <QHash>
13 
14 #include <hfm/HFM.h>
15 
16 #include <shared/HifiTypes.h>
17 
18 #include "Engine.h"
19 #include "BakerTypes.h"
20 
21 #include <procedural/ProceduralMaterialCache.h>
22 
23 class ParseMaterialMappingTask {
24 public:
25  using Input = baker::VaryingSet2<hifi::VariantHash, hifi::URL>;
26  using Output = MaterialMapping;
27  using JobModel = baker::Job::ModelIO<ParseMaterialMappingTask, Input, Output>;
28 
29  void run(const baker::BakeContextPointer& context, const Input& input, Output& output);
30 };
31 
32 #endif // hifi_ParseMaterialMappingTask_h