MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / lib_glsl_packHalf2x16

Function lib_glsl_packHalf2x16

src/GLSLLibrary.cpp:486–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 return bv_variable_create_float(0.0f);
485 }
486 bv_variable lib_glsl_packHalf2x16(bv_program* prog, u8 count, bv_variable* args)
487 {
488 /* uint packHalf2x16(vec2) */
489 if (count == 1) {
490 if (args[0].type == bv_type_object)
491 return bv_variable_create_uint(glm::packHalf2x16(sd::AsVector<2, float>(args[0])));
492 }
493 return bv_variable_create_uint(0);
494 }
495 bv_variable lib_glsl_packUnorm2x16(bv_program* prog, u8 count, bv_variable* args)
496 {
497 /* uint packUnorm2x16(vec2) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected