MCPcopy Create free account
hub / github.com/defold/defold / ApplyLightBufferForBinding

Function ApplyLightBufferForBinding

engine/render/src/render/light.cpp:405–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 static void ApplyLightBufferForBinding(HRenderContext render_context, uint16_t light_buffer_set, uint16_t light_buffer_binding)
406 {
407 if (IsLightBufferDirty(render_context))
408 {
409 WriteLightInstanceData(render_context);
410 }
411
412 dmGraphics::EnableUniformBuffer(render_context->m_GraphicsContext,
413 render_context->m_LightUniformBuffer,
414 light_buffer_set,
415 light_buffer_binding);
416 }
417
418 void ApplyMaterialProgramLightBuffers(HRenderContext render_context, HMaterial material)
419 {

Calls 3

IsLightBufferDirtyFunction · 0.85
WriteLightInstanceDataFunction · 0.85
EnableUniformBufferFunction · 0.85

Tested by

no test coverage detected