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

Function lib_common_all

src/CommonLibrary.cpp:2459–2470  ·  view source on GitHub ↗

component comparison */

Source from the content-addressed store, hash-verified

2457
2458 /* component comparison */
2459 bv_variable lib_common_all(bv_program* prog, u8 count, bv_variable* args)
2460 {
2461 /* bool all(bvec) */
2462 bv_object* x = bv_variable_get_object(args[0]);
2463
2464 u8 ret = 1;
2465
2466 for (u8 i = 0; i < x->type->props.name_count; i++)
2467 ret &= bv_variable_get_uchar(x->prop[i]);
2468
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) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected