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

Function lib_glsl_packSnorm2x16

src/GLSLLibrary.cpp:504–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502 return bv_variable_create_uint(0);
503 }
504 bv_variable lib_glsl_packSnorm2x16(bv_program* prog, u8 count, bv_variable* args)
505 {
506 /* uint packUnorm2x16(vec2) */
507 if (count == 1) {
508 if (args[0].type == bv_type_object)
509 return bv_variable_create_uint(glm::packSnorm2x16(sd::AsVector<2, float>(args[0])));
510 }
511 return bv_variable_create_uint(0);
512 }
513 bv_variable lib_glsl_packUnorm4x8(bv_program* prog, u8 count, bv_variable* args)
514 {
515 /* uint packUnorm4x8(vec4) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected