mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 08:06:19 +00:00
Automatically run the TypeDeterminer when building programs
Removes the need for Dawn to use the TypeDeterminer directly. TypeDeterminer errors will be added to the Program diagnostics list. Change-Id: I4cfb405e7e6b0e94727296eea872a3ddc4412b66 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38921 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
844217fa34
commit
dd69ac3505
@@ -40,7 +40,11 @@ class SpvParserTestBase : public T {
|
||||
/// @param input the SPIR-V binary to parse
|
||||
/// @returns a parser for the given binary
|
||||
std::unique_ptr<ParserImpl> parser(const std::vector<uint32_t>& input) {
|
||||
return std::make_unique<ParserImpl>(input);
|
||||
auto parser = std::make_unique<ParserImpl>(input);
|
||||
// Don't run the TypeDeterminer when building the program.
|
||||
// We're not interested in type information with these tests.
|
||||
parser->builder().SetResolveOnBuild(false);
|
||||
return parser;
|
||||
}
|
||||
|
||||
/// Gets the internal representation of the function with the given ID.
|
||||
|
||||
Reference in New Issue
Block a user