From 428f4fce7039d9f0201e19553e67ba09557657c6 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 12 Oct 2020 15:51:41 +0200 Subject: [PATCH] Moving backends code from examples/ to backends/ (step 2: moving vulkan cruft) --- .../gen_spv.sh => backends/vulkan/generate_spv.sh | 3 +++ .../example_glfw_vulkan => backends/vulkan}/glsl_shader.frag | 0 .../example_glfw_vulkan => backends/vulkan}/glsl_shader.vert | 0 3 files changed, 3 insertions(+) rename examples/example_glfw_vulkan/gen_spv.sh => backends/vulkan/generate_spv.sh (55%) rename {examples/example_glfw_vulkan => backends/vulkan}/glsl_shader.frag (100%) rename {examples/example_glfw_vulkan => backends/vulkan}/glsl_shader.vert (100%) diff --git a/examples/example_glfw_vulkan/gen_spv.sh b/backends/vulkan/generate_spv.sh similarity index 55% rename from examples/example_glfw_vulkan/gen_spv.sh rename to backends/vulkan/generate_spv.sh index e0d7f3b0..948ef773 100755 --- a/examples/example_glfw_vulkan/gen_spv.sh +++ b/backends/vulkan/generate_spv.sh @@ -1,3 +1,6 @@ #!/bin/bash +## -V: create SPIR-V binary +## -x: save binary output as text-based 32-bit hexadecimal numbers +## -o: output file glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert diff --git a/examples/example_glfw_vulkan/glsl_shader.frag b/backends/vulkan/glsl_shader.frag similarity index 100% rename from examples/example_glfw_vulkan/glsl_shader.frag rename to backends/vulkan/glsl_shader.frag diff --git a/examples/example_glfw_vulkan/glsl_shader.vert b/backends/vulkan/glsl_shader.vert similarity index 100% rename from examples/example_glfw_vulkan/glsl_shader.vert rename to backends/vulkan/glsl_shader.vert