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

Function lib_common_cross

src/CommonLibrary.cpp:2293–2300  ·  view source on GitHub ↗

vector */

Source from the content-addressed store, hash-verified

2291
2292 /* vector */
2293 bv_variable lib_common_cross(bv_program* prog, u8 count, bv_variable* args)
2294 {
2295 /* vec3 cross(vec3, vec3) */
2296 glm::vec3 x = sd::AsVector<3, float>(args[0]);
2297 glm::vec3 y = sd::AsVector<3, float>(args[1]);
2298
2299 return Common::create_float3(prog, glm::cross(x, y));
2300 }
2301 bv_variable lib_common_distance(bv_program* prog, u8 count, bv_variable* args)
2302 {
2303 /* float distance(genType) */

Callers

nothing calls this directly

Calls 1

create_float3Function · 0.85

Tested by

no test coverage detected