MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / SetInt

Method SetInt

Plugins/NativeEngine/Source/NativeEngine.cpp:1044–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042 }
1043
1044 void NativeEngine::SetInt(const Napi::CallbackInfo& info)
1045 {
1046 const auto uniformData = info[0].As<Napi::External<UniformInfo>>().Data();
1047 const auto value = info[1].As<Napi::Number>().FloatValue();
1048 m_currentProgram->SetUniform(uniformData->Handle, gsl::make_span(&value, 1));
1049 }
1050
1051 template<int size, typename arrayType>
1052 void NativeEngine::SetTypeArrayN(const Napi::CallbackInfo& info)

Callers

nothing calls this directly

Calls 3

FloatValueMethod · 0.80
SetUniformMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected