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

Method CompileSuccessfully

test/binary_to_text_test.cpp:81–87  ·  view source on GitHub ↗

Compiles the given assembly text, and saves it into 'binary'.

Source from the content-addressed store, hash-verified

79
80 // Compiles the given assembly text, and saves it into 'binary'.
81 void CompileSuccessfully(std::string text) {
82 spvBinaryDestroy(binary);
83 binary = nullptr;
84 spv_diagnostic diagnostic = nullptr;
85 EXPECT_EQ(SPV_SUCCESS, spvTextToBinary(context, text.c_str(), text.size(),
86 &binary, &diagnostic));
87 }
88
89 spv_context context;
90 spv_binary binary;

Callers

nothing calls this directly

Calls 4

spvBinaryDestroyFunction · 0.85
spvTextToBinaryFunction · 0.85
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected