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

Function lib_common_mat_operator_equal

src/CommonLibrary.cpp:703–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701 return ret;
702 }
703 bv_variable lib_common_mat_operator_equal(bv_program* prog, bv_object* me, u8 count, bv_variable* args)
704 {
705 sd::Matrix* myData = (sd::Matrix*)me->user_data;
706 bv_variable ret = bv_variable_create_uchar(0);
707 if (count == 1)
708 {
709 if (args[0].type == bv_type_object)
710 {
711 bv_object* obj = bv_variable_get_object(args[0]);
712
713 // mat == mat
714 if (obj->type->props.name_count == 0) {
715 u8 res = (myData->Data == ((sd::Matrix*)obj->user_data)->Data);
716 bv_variable_set_uchar(&ret, res);
717 }
718 }
719 }
720 return ret;
721 }
722 bv_variable lib_common_mat_operator_increment(bv_program* prog, bv_object* me, u8 count, bv_variable* args)
723 {
724 if (count == 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected