silly
parent
383904585f
commit
ef70fbc150
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(graphs VERSION 0.0.31)
|
project(graphs VERSION 0.0.33)
|
||||||
|
|
||||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||||
|
|
|
@ -550,6 +550,15 @@ void process_string(const std::string& str)
|
||||||
int main(int, const char**)
|
int main(int, const char**)
|
||||||
{
|
{
|
||||||
blt::template_engine_t templateEngine;
|
blt::template_engine_t templateEngine;
|
||||||
|
templateEngine.set("${LAYOUT_STRING}", "layout (location = ${IF(LAYOUT_LOCATION) LAYOUT_LOCATION ELSE ~DISCARD})");
|
||||||
|
templateEngine.set("${LAYOUT_LOCATION}", "0");
|
||||||
|
|
||||||
|
auto result = templateEngine.evaluate(shader_pp_screen_frag);
|
||||||
|
|
||||||
|
if (result)
|
||||||
|
BLT_TRACE(result.value());
|
||||||
|
else
|
||||||
|
BLT_TRACE("Function Failed: %d", static_cast<int>(result.error()));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
blt::gfx::init(blt::gfx::window_data{"Graphing Lovers United", init, update, 1440, 720}.setSyncInterval(1));
|
blt::gfx::init(blt::gfx::window_data{"Graphing Lovers United", init, update, 1440, 720}.setSyncInterval(1));
|
||||||
|
|
Loading…
Reference in New Issue