Skip to content

Commit

Permalink
feat: custom layers can now be specified in render_api.udm
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan committed Dec 5, 2024
1 parent a862541 commit f476f6d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/client/src/c_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,16 @@ bool CEngine::Initialize(int argc, char *argv[])
udm::to_enum_value<prosper::IPrContext::ExtensionAvailability>(pair.property, availability);
contextCreateInfo.extensions[std::string {pair.key}] = availability;
}

std::vector<std::string> layersAll;
std::vector<std::string> layersApi;
data["all"]["layers"] >> layersAll;
data[renderAPI]["layers"] >> layersApi;
contextCreateInfo.layers.reserve(layersAll.size() + layersApi.size());
for(auto &layer : layersAll)
contextCreateInfo.layers.push_back(layer);
for(auto &layer : layersApi)
contextCreateInfo.layers.push_back(layer);
}

if(windowRes) {
Expand Down

0 comments on commit f476f6d

Please sign in to comment.