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

Function lib_common_any

src/CommonLibrary.cpp:2471–2482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2469 return bv_variable_create_uchar(ret);
2470 }
2471 bv_variable lib_common_any(bv_program* prog, u8 count, bv_variable* args)
2472 {
2473 /* bool any(bvec) */
2474 bv_object* x = bv_variable_get_object(args[0]);
2475
2476 u8 ret = 0;
2477
2478 for (u8 i = 0; i < x->type->props.name_count; i++)
2479 ret |= bv_variable_get_uchar(x->prop[i]);
2480
2481 return bv_variable_create_uchar(ret);
2482 }
2483
2484 /* matrix */
2485 bv_variable lib_common_determinant(bv_program* prog, u8 count, bv_variable* args)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected