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

Function lib_glsl_packUnorm4x8

src/GLSLLibrary.cpp:513–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) */
516 if (count == 1) {
517 if (args[0].type == bv_type_object)
518 return bv_variable_create_uint(glm::packUnorm4x8(sd::AsVector<4, float>(args[0])));
519 }
520 return bv_variable_create_uint(0);
521 }
522 bv_variable lib_glsl_packSnorm4x8(bv_program* prog, u8 count, bv_variable* args)
523 {
524 /* uint packSnorm4x8(vec4) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected