Skip to content

Commit cd8b15b

Browse files
jrpriceDawn LUCI CQ
authored andcommitted
[ir][fuzz] Allow all WGSL features for --dump-wgsl
This allows the disassembler to generate WGSL for IR modules that use extensions. Change-Id: I2ea2261fe13994178814b90a9ca8c732ff2dac41 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/264514 Auto-Submit: James Price <[email protected]> Reviewed-by: Ryan Harrison <[email protected]> Commit-Queue: Ryan Harrison <[email protected]>
1 parent d15f07e commit cd8b15b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tint/cmd/fuzz/ir/dis/main.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ bool EmitWGSL(const Options& options, tint::core::ir::Module& module) {
273273
}
274274

275275
tint::wgsl::writer::Options writer_options;
276+
writer_options.allowed_features = tint::wgsl::AllowedFeatures::Everything();
276277
auto output = tint::wgsl::writer::WgslFromIR(module, writer_options);
277278
if (output != tint::Success) {
278279
std::cerr << "Failed to convert IR to WGSL Program: " << output.Failure() << "\n";

0 commit comments

Comments
 (0)