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

Function AsFloat

src/Utils.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 return sd::Matrix();
53 }
54 float AsFloat(const bv_variable& var)
55 {
56 if (var.type == bv_type_float)
57 return bv_variable_get_float(var);
58 return 0.0f;
59 }
60 int AsInteger(const bv_variable& var)
61 {
62 if (bv_type_is_integer(var.type))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected