Auto shader compilation
This commit is contained in:
14
Makefile
14
Makefile
@@ -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
BIN
VulkanTest
Executable file
Binary file not shown.
@@ -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.
Reference in New Issue
Block a user