spirv: fix error code encoding

This commit is contained in:
Robin Voetter 2024-04-13 14:37:46 +02:00
parent ec337051a9
commit fba6b7e4c2
No known key found for this signature in database

View file

@ -232,6 +232,7 @@ pub fn flushModule(self: *SpirV, arena: Allocator, prog_node: std.Progress.Node)
// name if it contains no strange characters is nice for debugging. URI encoding fits the bill.
// We're using : as separator, which is a reserved character.
try error_info.append(':');
try std.Uri.Component.percentEncode(
error_info.writer(),
name.toSlice(&mod.intern_pool),