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

Method SetUniform

Plugins/NativeEngine/Source/NativeEngine.h:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 std::unordered_map<uint16_t, UniformValue> Uniforms{};
278
279 void SetUniform(bgfx::UniformHandle handle, gsl::span<const float> data, size_t elementLength = 1)
280 {
281 UniformValue& value = Uniforms[handle.idx];
282 value.Data.assign(data.begin(), data.end());
283 value.ElementLength = static_cast<uint16_t>(elementLength);
284 }
285 };
286
287 class IndexBufferData;

Callers 5

SetIntMethod · 0.80
SetTypeArrayNMethod · 0.80
SetFloatNMethod · 0.80
SetMatrixNMethod · 0.80
SetMatricesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected