std: add object format extension for dxcontainer

source: https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst
This commit is contained in:
Meghan 2022-12-12 01:34:47 -08:00 committed by Andrew Kelley
parent 21c2bca908
commit 332020f310

View File

@ -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}),
}
}