mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 22:56:09 +00:00
Change generators to take a pointer instead of move.
This CL changes the generators so we don't have to move the module into the generator. This will then allow calling the demangler at a later point and still having access to the module. Change-Id: Icad16ddb2b89921cbb174cf7fec520c410139285 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36942 Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
dan sinclair
parent
7d152e0936
commit
b920e604b2
@@ -66,7 +66,7 @@ class TransformTest : public testing::Test {
|
||||
// Release the source module to ensure there's no uncloned data in result
|
||||
{ auto tmp = std::move(module); }
|
||||
|
||||
writer::wgsl::Generator generator(std::move(result.module));
|
||||
writer::wgsl::Generator generator(&(result.module));
|
||||
if (!generator.Generate()) {
|
||||
return "WGSL writer failed:\n" + generator.error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user