MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / glslang_program_SPIRV_get

Function glslang_program_SPIRV_get

SPIRV/CInterface/spirv_c_interface.cpp:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107GLSLANG_EXPORT size_t glslang_program_SPIRV_get_size(glslang_program_t* program) { return program->spirv.size(); }
108
109GLSLANG_EXPORT void glslang_program_SPIRV_get(glslang_program_t* program, unsigned int* out)
110{
111 memcpy(out, program->spirv.data(), program->spirv.size() * sizeof(unsigned int));
112}
113
114GLSLANG_EXPORT unsigned int* glslang_program_SPIRV_get_ptr(glslang_program_t* program)
115{

Callers 1

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected