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

Function MakeVector

source/util/string_utils.h:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72// Encodes a string as a sequence of words, using the SPIR-V encoding.
73template <class VectorType = std::vector<uint32_t>>
74inline VectorType MakeVector(const std::string& input) {
75 static_assert(std::is_same<uint32_t, typename VectorType::value_type>::value);
76 VectorType result;
77 AppendToVector(input, &result);
78 return result;
79}
80
81// Decode a string from a sequence of words between first and last, using the
82// SPIR-V encoding. Assert that a terminating 0-byte was found (unless

Callers 15

MergeModulesFunction · 0.85
GenerateHeaderMethod · 0.85
CombineInstructionsMethod · 0.85
GetGlslInstsMethod · 0.85
AddExtensionMethod · 0.85
AddExtInstImportMethod · 0.85
GetTypeInstructionMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

AppendToVectorFunction · 0.85

Tested by 15

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68