This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use diagnostics; | |
use Getopt::Long; | |
my $dir = ".", my $help; | |
GetOptions("d=s" => \$dir, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj = main.o | |
bin = test | |
toolchain_prefix = armv7a-linux-androideabi28- | |
CC = $(toolchain_prefix)clang | |
CFLAGS = -pedantic -Wall -g -O0 | |
$(bin): $(obj) | |
$(CC) -o $@ $(obj) $(LDFLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src = $(filter-out %-sdl.cpp %-glfw.cpp, $(wildcard framework/*.cpp)) | |
obj = $(src:.cpp=.o) | |
dep = $(obj:.o=.d) | |
lib_so = libvkdf.so | |
spv = $(patsubst %.input,%.spv,$(wildcard data/spirv/*.input)) \ | |
$(patsubst %.frag,%.frag.spv,$(wildcard data/spirv/*.frag)) \ | |
$(patsubst %.vert,%.vert.spv,$(wildcard data/spirv/*.vert)) | |
dbg = -g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src = $(wildcard *.cpp) | |
obj = $(src:.cpp=.o) | |
dep = $(obj.o=.d) | |
bin = sponza | |
vkdf_root = ../.. | |
spv = $(patsubst %.input,%.spv,$(wildcard *.input)) \ | |
$(patsubst %.frag,%.frag.spv,$(wildcard *.frag)) \ | |
$(patsubst %.vert,%.vert.spv,$(wildcard *.vert)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[require] | |
vulkan 1.1.3 | |
[vertex shader passthrough] | |
[fragment shader] | |
#version 430 | |
layout(location = 0) out vec4 out_color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[require] | |
vulkan 1.1.3 | |
fbsize 800 600 | |
[vertex shader passthrough] | |
[fragment shader] | |
#version 450 | |
#define T 0.001 //threshold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[require] | |
fbsize 800 600 | |
[vertex shader passthrough] | |
[fragment shader] | |
#version 450 | |
layout(location = 0) out vec4 out_color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[require] | |
fbsize 800 600 | |
[vertex shader passthrough] | |
[fragment shader] | |
#version 450 | |
layout(location = 0) out vec4 out_color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[require] | |
fbsize 800 600 | |
[vertex shader passthrough] | |
[fragment shader] | |
#version 450 | |
layout(location = 0) out vec4 out_color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[require] | |
fbsize 800 600 | |
[vertex shader passthrough] | |
[fragment shader] | |
#version 450 | |
float checkerboard(in vec2 uv) | |
{ | |
vec2 pos = floor(uv); |