diff --git a/.gitignore b/.gitignore deleted file mode 100644 index fbf067b..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -vulkan_shader.d diff --git a/vulkan.d b/vulkan.d index 6942d29..c0c7924 100644 --- a/vulkan.d +++ b/vulkan.d @@ -402,6 +402,8 @@ struct QueueInfo bool single_queue; } +u8[] CONVERT_SHADER_BYTES = import("convert.comp.glsl"); + Vulkan Init(PlatformHandles platform_handles, u64 permanent_mem, u64 frame_mem) { diff --git a/vulkan_codegen.d b/vulkan_codegen.d deleted file mode 100644 index 70c5528..0000000 --- a/vulkan_codegen.d +++ /dev/null @@ -1,35 +0,0 @@ -version(VULKAN_CODEGEN) -{ - import std.file; - import std.string; - import std.path; - import std.stdio; - - void main(string[] argv) - { - assert(argv.length > 1, "No argument provided"); - - ubyte[] shader_bytes = cast(ubyte[])read(argv[1]); - - string p = __FILE__.absolutePath; - string codegen_name = chomp(p, baseName(p)) ~ "vulkan_shader.d"; - auto f = File(codegen_name, "w"); - - f.write("ubyte[] CONVERT_SHADER_BYTES = ["); - - foreach(i, b; shader_bytes) - { - if (i % 50 == 0) - { - f.write("\n\t"); - } - - f.writef("%d, ", b); - } - - f.writeln("\n];"); - - f.close(); - } -} -