templating

main
Brett 2024-05-11 13:39:00 -04:00
parent 78822c8c1e
commit 0f14a4b97e
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(graphs VERSION 0.0.35)
project(graphs VERSION 0.0.36)
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)

View File

@ -550,8 +550,8 @@ void process_string(const std::string& str)
int main(int, const char**)
{
blt::template_engine_t templateEngine;
templateEngine.set("LAYOUT_STRING", "layout (location = ${IF(LAYOUT_LOCATION) LAYOUT_LOCATION ELSE ~DISCARD})");
templateEngine.set("LAYOUT_LOCATION", "0");
templateEngine.set("LAYOUT_STRING", "layout (location = ${IF(LAYOUT_LOCATION) { LAYOUT_LOCATION } ELSE { ~DISCARD }}) ");
templateEngine.set("LAYOUT_LOCATION", "1");
auto result = templateEngine.evaluate(shader_pp_screen_frag);