common code for shaders

This commit is contained in:
2025-09-15 23:39:18 +02:00
parent 858d504528
commit e91c113471
16 changed files with 139 additions and 91 deletions
+8 -3
View File
@@ -1,6 +1,6 @@
TARGET ?= forge
INSTALL_DIR ?= $(HOME)/.local/bin
TEST_ARGS ?=
TEST_ARGS ?= --hot-reload --frag=./shaders
SHELL := /bin/bash
.PHONY: build
@@ -18,7 +18,7 @@ build:
-o build/$(TARGET)
run: build
./build/forge --hot-reload --frag=./shaders
./build/$(TARGET) $(TEST_ARGS)
.PHONY: install
install: build
@@ -26,7 +26,12 @@ install: build
.PHONY: valgrind
valgrind: build
valgrind --leak-check=full -s ./build/$(TARGET) $(TEST_ARGS)
valgrind \
--leak-check=full \
--track-fds=all \
--show-realloc-size-zero=no \
--undef-value-errors=no \
./build/$(TARGET) $(TEST_ARGS)
.PHONY: release
release: clean