| 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 | { |
no test coverage detected