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

Function AsMatrix

src/Utils.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace sd
44{
45 sd::Matrix AsMatrix(const bv_variable& var)
46 {
47 if (var.type == bv_type_object) {
48 bv_object* obj = bv_variable_get_object(var);
49 return *(sd::Matrix*)obj->user_data;
50 }
51
52 return sd::Matrix();
53 }
54 float AsFloat(const bv_variable& var)
55 {
56 if (var.type == bv_type_float)

Callers

nothing calls this directly

Calls 1

MatrixClass · 0.85

Tested by

no test coverage detected