|
| 1 | +const lib = @import("lib.zig"); |
| 2 | +const spv = lib.spv; |
| 3 | + |
| 4 | +pub const SourceLanguage = enum(u32) { |
| 5 | + Unknown = 0, |
| 6 | + ESSL = 1, |
| 7 | + GLSL = 2, |
| 8 | + OpenCL_C = 3, |
| 9 | + OpenCL_CPP = 4, |
| 10 | + HLSL = 5, |
| 11 | + CPP_for_OpenCL = 6, |
| 12 | + SYCL = 7, |
| 13 | + HERO_C = 8, |
| 14 | + NZSL = 9, |
| 15 | + WGSL = 10, |
| 16 | + Slang = 11, |
| 17 | + Zig = 12, |
| 18 | + Rust = 13, |
| 19 | +}; |
| 20 | + |
| 21 | +pub fn vendorName(id: u32) []const u8 { |
| 22 | + return switch (id) { |
| 23 | + 0 => "Khronos", |
| 24 | + 1 => "LunarG", |
| 25 | + 2 => "Valve", |
| 26 | + 3 => "Codeplay", |
| 27 | + 4 => "NVIDIA", |
| 28 | + 5 => "ARM", |
| 29 | + 6 => "Khronos LLVM/SPIR-V Translator", |
| 30 | + 7 => "Khronos SPIR-V Tools Assembler", |
| 31 | + 8 => "Khronos Glslang Reference Front End", |
| 32 | + 9 => "Qualcomm", |
| 33 | + 10 => "AMD", |
| 34 | + 11 => "Intel", |
| 35 | + 12 => "Imagination", |
| 36 | + 13 => "Google Shaderc over Glslang", |
| 37 | + 14 => "Google spiregg", |
| 38 | + 15 => "Google rspirv", |
| 39 | + 16 => "X-LEGEND Mesa-IR/SPIR-V Translator", |
| 40 | + 17 => "Khronos SPIR-V Tools Linker", |
| 41 | + 18 => "Wine VKD3D Shader Compiler", |
| 42 | + 19 => "Tellusim Clay Shader Compiler", |
| 43 | + 20 => "W3C WebGPU Group WHLSL Shader Translator", |
| 44 | + 21 => "Google Clspv", |
| 45 | + 22 => "LLVM MLIR SPIR-V Serializer", |
| 46 | + 23 => "Google Tint Compiler", |
| 47 | + 24 => "Google ANGLE Shader Compiler", |
| 48 | + 25 => "Netease Games Messiah Shader Compiler", |
| 49 | + 26 => "Xenia Xenia Emulator Microcode Translator", |
| 50 | + 27 => "Embark Studios Rust GPU Compiler Backend", |
| 51 | + 28 => "gfx-rs community Naga", |
| 52 | + 29 => "Mikkosoft Productions MSP Shader Compiler", |
| 53 | + 30 => "SpvGenTwo community SpvGenTwo SPIR-V IR Tools", |
| 54 | + 31 => "Google Skia SkSL", |
| 55 | + 32 => "TornadoVM Beehive SPIRV Toolkit", |
| 56 | + 33 => "DragonJoker ShaderWriter", |
| 57 | + 34 => "Rayan Hatout SPIRVSmith", |
| 58 | + 35 => "Saarland University Shady", |
| 59 | + 36 => "Taichi Graphics Taichi", |
| 60 | + 37 => "heroseh Hero C Compiler", |
| 61 | + 38 => "Meta SparkSL", |
| 62 | + 39 => "SirLynix Nazara ShaderLang Compiler", |
| 63 | + 40 => "Khronos Slang Compiler", |
| 64 | + 41 => "Zig Software Foundation Zig Compiler", |
| 65 | + 42 => "Rendong Liang spq", |
| 66 | + 43 => "LLVM LLVM SPIR-V Backend", |
| 67 | + 44 => "Robert Konrad Kongruent", |
| 68 | + 45 => "Kitsunebi Games Nuvk SPIR-V Emitter and DLSL compiler", |
| 69 | + 46 => "Nintendo", |
| 70 | + 47 => "ARM", |
| 71 | + 48 => "Goopax", |
| 72 | + 49 => "Icyllis Milica Arc3D Shader Compiler", |
| 73 | + |
| 74 | + else => "Unknown", |
| 75 | + }; |
| 76 | +} |
0 commit comments