Auto shader compilation

This commit is contained in:
2026-02-20 12:11:06 +00:00
parent 5833cc1f22
commit 7dc47faeab
4 changed files with 10 additions and 6 deletions

View File

@@ -1,13 +1,17 @@
CFLAGS = -std=c++17 -O2 CFLAGS = -std=c++17 -O2
LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
VulkanTest: *.cpp *.hpp SOURCES = $(wildcard *.cpp)
g++ $(CFLAGS) -o a.out *.cpp $(LDFLAGS) HEADERS = $(wildcard *.hpp)
VulkanTest: $(SOURCES) $(HEADERS)
./compile.sh
g++ $(CFLAGS) -o VulkanTest $(SOURCES) $(LDFLAGS)
.PHONY: test clean .PHONY: test clean
test: a.out test: VulkanTest
./a.out ./VulkanTest
clean: clean:
rm -f a.out rm -f VulkanTest

BIN
VulkanTest Executable file

Binary file not shown.

View File

@@ -3,5 +3,5 @@
layout (location = 0) out vec4 outColor; layout (location = 0) out vec4 outColor;
void main() { void main() {
outColor = vec4(1.0, 0.0, 0.0, 1.0); outColor = vec4(1.0, 1.0, 0.0, 1.0);
} }

Binary file not shown.