aboutsummaryrefslogtreecommitdiff
path: root/src/spvshaders/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/spvshaders/Makefile.am')
-rw-r--r--src/spvshaders/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/spvshaders/Makefile.am b/src/spvshaders/Makefile.am
new file mode 100644
index 0000000..5a5a362
--- /dev/null
+++ b/src/spvshaders/Makefile.am
@@ -0,0 +1,9 @@
+include ../../common.am
+
+spvshaders_DATA = shader.spv
+CLEANFILES = shader.spv
+
+shader_spv_SLANGFLAGS = -target spirv -profile spirv_1_4 -emit-spirv-directly -fvk-use-entrypoint-name -entry vert_main -entry frag_main
+
+shader.spv: $(srcdir)/shader.slang
+ $(SLANGC) $(shader_spv_SLANGFLAGS) -o $@ $<