MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / Parse

Method Parse

test/binary_parse_test.cpp:253–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 ~CxxBinaryParseTest() override { spvDiagnosticDestroy(diagnostic_); }
252
253 void Parse(const SpirvVector& words, bool expected_result,
254 bool flip_words = false,
255 spv_target_env env = SPV_ENV_UNIVERSAL_1_0) {
256 SpirvVector flipped_words(words);
257 MaybeFlipWords(flip_words, flipped_words.begin(), flipped_words.end());
258 spvtools::SpirvTools tools(env);
259 EXPECT_EQ(expected_result, tools.Parse(flipped_words, header_parser_,
260 instruction_parser_, &diagnostic_));
261 }
262
263 spv_diagnostic diagnostic_ = nullptr;
264 MockParseClient client_;

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected