diff --git a/Makefile b/Makefile index 820991d..9c5deb6 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,17 @@ CFLAGS = -std=c++17 -O2 LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -VulkanTest: *.cpp *.hpp - g++ $(CFLAGS) -o a.out *.cpp $(LDFLAGS) +SOURCES = $(wildcard *.cpp) +HEADERS = $(wildcard *.hpp) + +VulkanTest: $(SOURCES) $(HEADERS) + ./compile.sh + g++ $(CFLAGS) -o VulkanTest $(SOURCES) $(LDFLAGS) .PHONY: test clean -test: a.out - ./a.out +test: VulkanTest + ./VulkanTest clean: - rm -f a.out + rm -f VulkanTest \ No newline at end of file diff --git a/VulkanTest b/VulkanTest new file mode 100755 index 0000000..76a5670 Binary files /dev/null and b/VulkanTest differ diff --git a/shaders/simple_shader.frag b/shaders/simple_shader.frag index cb3b12b..1d1b727 100644 --- a/shaders/simple_shader.frag +++ b/shaders/simple_shader.frag @@ -3,5 +3,5 @@ layout (location = 0) out vec4 outColor; void main() { - outColor = vec4(1.0, 0.0, 0.0, 1.0); + outColor = vec4(1.0, 1.0, 0.0, 1.0); } diff --git a/shaders/simple_shader.frag.spv b/shaders/simple_shader.frag.spv index aa92776..b5a7103 100644 Binary files a/shaders/simple_shader.frag.spv and b/shaders/simple_shader.frag.spv differ