From 0f14a4b97e52f167b5a6e8c60f427f00da85631f Mon Sep 17 00:00:00 2001 From: Brett Date: Sat, 11 May 2024 13:39:00 -0400 Subject: [PATCH] templating --- CMakeLists.txt | 2 +- src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bad4cd..193639a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/main.cpp b/src/main.cpp index 839b467..aeab7d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);