Commit 332020f310

Meghan <hello@nektro.net>
2022-12-12 10:34:47
std: add object format extension for dxcontainer
source: https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst
1 parent 21c2bca
Changed files (1)
lib
lib/std/zig.zig
@@ -195,7 +195,7 @@ pub fn binNameAlloc(allocator: std.mem.Allocator, options: BinNameOptions) error
             }),
         },
         .nvptx => return std.fmt.allocPrint(allocator, "{s}.ptx", .{root_name}),
-        .dxcontainer => @panic("TODO what's the file extension for these?"),
+        .dxcontainer => return std.fmt.allocPrint(allocator, "{s}.dxil", .{root_name}),
     }
 }