1 #ifndef DALI_INTERNAL_SCENE_GRAPH_RENDERER_H
2 #define DALI_INTERNAL_SCENE_GRAPH_RENDERER_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
20 #include <dali/devel-api/rendering/renderer-devel.h>
21 #include <dali/internal/common/blending-options.h>
22 #include <dali/internal/common/type-abstraction-enums.h>
23 #include <dali/internal/event/common/event-thread-services.h>
24 #include <dali/internal/render/data-providers/render-data-provider.h>
25 #include <dali/internal/render/renderers/render-renderer.h>
26 #include <dali/internal/update/common/animatable-property.h>
27 #include <dali/internal/update/common/property-owner.h>
28 #include <dali/internal/update/common/scene-graph-connection-change-propagator.h>
29 #include <dali/internal/update/common/uniform-map.h>
30 #include <dali/public-api/rendering/geometry.h>
31 #include <dali/public-api/rendering/renderer.h> // Dali::Renderer
45 class SceneController;
48 using RendererContainer = Dali::Vector<Renderer*>;
49 using RendererIter = RendererContainer::Iterator;
50 using RendererConstIter = RendererContainer::ConstIterator;
55 class Renderer : public PropertyOwner,
56 public UniformMapDataProvider,
57 public UniformMap::Observer,
58 public ConnectionChangePropagator::Observer
69 * Construct a new Renderer
71 static Renderer* New();
79 * Overriden delete operator
80 * Deletes the renderer from its global memory pool
82 void operator delete(void* ptr);
85 * Set the texture set for the renderer
86 * @param[in] textureSet The texture set this renderer will use
88 void SetTextures(TextureSet* textureSet);
91 * Returns current texture set object
92 * @return Pointer to the texture set
94 const TextureSet* GetTextures() const
100 * Set the shader for the renderer
101 * @param[in] shader The shader this renderer will use
103 void SetShader(Shader* shader);
106 * Get the shader used by this renderer
107 * @return the shader this renderer uses
109 const Shader& GetShader() const
115 * Set the geometry for the renderer
116 * @param[in] geometry The geometry this renderer will use
118 void SetGeometry(Render::Geometry* geometry);
121 * Set the depth index
122 * @param[in] depthIndex the new depth index to use
124 void SetDepthIndex(int depthIndex);
127 * @brief Get the depth index
128 * @return The depth index
130 int GetDepthIndex() const
136 * Set the face culling mode
137 * @param[in] faceCullingMode to use
139 void SetFaceCullingMode(FaceCullingMode::Type faceCullingMode);
142 * Get face culling mode
143 * @return The face culling mode
145 FaceCullingMode::Type GetFaceCullingMode() const;
148 * Set the blending mode
149 * @param[in] blendingMode to use
151 void SetBlendMode(BlendMode::Type blendingMode);
154 * Get the blending mode
155 * @return The the blending mode
157 BlendMode::Type GetBlendMode() const;
160 * Set the blending options. This should only be called from the update thread.
161 * @param[in] options A bitmask of blending options.
163 void SetBlendingOptions(uint32_t options);
166 * Get the blending options
167 * @return The the blending mode
169 uint32_t GetBlendingOptions() const;
172 * Set the blend color for blending operation
173 * @param blendColor to pass to GL
175 void SetBlendColor(const Vector4& blendColor);
178 * Get the blending color
179 * @return The blend color
181 Vector4 GetBlendColor() const;
184 * Set the index of first element for indexed draw
185 * @param[in] firstElement index of first element to draw
187 void SetIndexedDrawFirstElement(uint32_t firstElement);
190 * Get the index of first element for indexed draw
191 * @return The index of first element for indexed draw
193 uint32_t GetIndexedDrawFirstElement() const;
196 * Set the number of elements to draw by indexed draw
197 * @param[in] elementsCount number of elements to draw
199 void SetIndexedDrawElementsCount(uint32_t elementsCount);
202 * Get the number of elements to draw by indexed draw
203 * @return The number of elements to draw by indexed draw
205 uint32_t GetIndexedDrawElementsCount() const;
208 * @brief Set whether the Pre-multiplied Alpha Blending is required
209 * @param[in] preMultipled whether alpha is pre-multiplied.
211 void EnablePreMultipliedAlpha(bool preMultipled);
214 * @brief Query whether alpha is pre-multiplied.
215 * @return True is alpha is pre-multiplied, false otherwise.
217 bool IsPreMultipliedAlphaEnabled() const;
220 * Sets the depth buffer write mode
221 * @param[in] depthWriteMode The depth buffer write mode
223 void SetDepthWriteMode(DepthWriteMode::Type depthWriteMode);
226 * Get the depth buffer write mode
227 * @return The depth buffer write mode
229 DepthWriteMode::Type GetDepthWriteMode() const;
232 * Sets the depth buffer test mode
233 * @param[in] depthTestMode The depth buffer test mode
235 void SetDepthTestMode(DepthTestMode::Type depthTestMode);
238 * Get the depth buffer test mode
239 * @return The depth buffer test mode
241 DepthTestMode::Type GetDepthTestMode() const;
244 * Sets the depth function
245 * @param[in] depthFunction The depth function
247 void SetDepthFunction(DepthFunction::Type depthFunction);
250 * Get the depth function
251 * @return The depth function
253 DepthFunction::Type GetDepthFunction() const;
256 * Sets the render mode
257 * @param[in] mode The render mode
259 void SetRenderMode(RenderMode::Type mode);
262 * Sets the stencil function
263 * @param[in] stencilFunction The stencil function
265 void SetStencilFunction(StencilFunction::Type stencilFunction);
268 * Sets the stencil function mask
269 * @param[in] stencilFunctionMask The stencil function mask
271 void SetStencilFunctionMask(int stencilFunctionMask);
274 * Sets the stencil function reference
275 * @param[in] stencilFunctionReference The stencil function reference
277 void SetStencilFunctionReference(int stencilFunctionReference);
280 * Sets the stencil mask
281 * @param[in] stencilMask The stencil mask
283 void SetStencilMask(int stencilMask);
286 * Sets the stencil operation for when the stencil test fails
287 * @param[in] stencilOperationOnFail The stencil operation
289 void SetStencilOperationOnFail(StencilOperation::Type stencilOperationOnFail);
292 * Sets the stencil operation for when the depth test fails
293 * @param[in] stencilOperationOnZFail The stencil operation
295 void SetStencilOperationOnZFail(StencilOperation::Type stencilOperationOnZFail);
298 * Sets the stencil operation for when the depth test passes
299 * @param[in] stencilOperationOnZPass The stencil operation
301 void SetStencilOperationOnZPass(StencilOperation::Type stencilOperationOnZPass);
304 * Gets the stencil parameters
305 * @return The stencil parameters
307 const Render::Renderer::StencilParameters& GetStencilParameters() const;
311 * @param[in] updateBufferIndex The current update buffer index.
312 * @param[in] opacity The opacity
314 void BakeOpacity(BufferIndex updateBufferIndex, float opacity);
318 * @param[in] bufferIndex The buffer to read from.
319 * @return The opacity
321 float GetOpacity(BufferIndex updateBufferIndex) const;
324 * Sets the rendering behavior
325 * @param[in] renderingBehavior The rendering behavior required.
327 void SetRenderingBehavior(DevelRenderer::Rendering::Type renderingBehavior);
330 * Gets the rendering behavior
331 * @return The rendering behavior
333 DevelRenderer::Rendering::Type GetRenderingBehavior() const;
336 * Prepare the object for rendering.
337 * This is called by the UpdateManager when an object is due to be rendered in the current frame.
338 * @param[in] updateBufferIndex The current update buffer index.
339 * @return Whether this renderer has been updated in the current frame
341 bool PrepareRender(BufferIndex updateBufferIndex);
344 * Retrieve the Render thread renderer
345 * @return The associated render thread renderer
347 Render::Renderer& GetRenderer();
350 * Query whether the renderer is fully opaque, fully transparent or transparent.
351 * @param[in] updateBufferIndex The current update buffer index.
352 * @return OPAQUE if fully opaque, TRANSPARENT if fully transparent and TRANSLUCENT if in between
354 OpacityType GetOpacityType(BufferIndex updateBufferIndex, const Node& node) const;
357 * Called by the TextureSet to notify to the renderer that it has changed
359 void TextureSetChanged();
362 * Called by the TextureSet to notify to the renderer that it is about to be deleted
364 void TextureSetDeleted();
367 * Connect the object to the scene graph
369 * @param[in] sceneController The scene controller - used for sending messages to render thread
370 * @param[in] bufferIndex The current buffer index - used for sending messages to render thread
372 void ConnectToSceneGraph(SceneController& sceneController, BufferIndex bufferIndex);
375 * Disconnect the object from the scene graph
376 * @param[in] sceneController The scene controller - used for sending messages to render thread
377 * @param[in] bufferIndex The current buffer index - used for sending messages to render thread
379 void DisconnectFromSceneGraph(SceneController& sceneController, BufferIndex bufferIndex);
381 public: // Implementation of ConnectionChangePropagator
383 * @copydoc ConnectionChangePropagator::AddObserver
385 void AddConnectionObserver(ConnectionChangePropagator::Observer& observer){};
388 * @copydoc ConnectionChangePropagator::RemoveObserver
390 void RemoveConnectionObserver(ConnectionChangePropagator::Observer& observer){};
392 public: // UniformMap::Observer
394 * @copydoc UniformMap::Observer::UniformMappingsChanged
396 void UniformMappingsChanged(const UniformMap& mappings) override;
398 public: // ConnectionChangePropagator::Observer
400 * @copydoc ConnectionChangePropagator::ConnectionsChanged
402 void ConnectionsChanged(PropertyOwner& owner) override;
405 * @copydoc ConnectionChangePropagator::ConnectedUniformMapChanged
407 void ConnectedUniformMapChanged() override;
410 * @copydoc ConnectionChangePropagator::ConnectedUniformMapChanged
412 void ObservedObjectDestroyed(PropertyOwner& owner) override;
414 public: // PropertyOwner implementation
416 * @copydoc Dali::Internal::SceneGraph::PropertyOwner::ResetDefaultProperties()
418 virtual void ResetDefaultProperties(BufferIndex updateBufferIndex){};
420 public: // From UniformMapDataProvider
422 * @copydoc UniformMapDataProvider::GetUniformMapChanged
424 bool GetUniformMapChanged(BufferIndex bufferIndex) const override
426 return mUniformMapChanged[bufferIndex];
430 * @copydoc UniformMapDataProvider::GetUniformMap
432 const CollectedUniformMap& GetUniformMap(BufferIndex bufferIndex) const override;
434 void SetDrawCommands(Dali::DevelRenderer::DrawCommand* pDrawCommands, uint32_t size);
437 * Temporary fix to age mRegenerateUniformMap from render side.
438 * (aging should only be done if renderer is visible, not when PrepareRender is called)
440 void AgeUniformMap();
444 * Protected constructor; See also Renderer::New()
449 * Update texture set to the render data provider
451 void UpdateTextureSet();
454 CollectedUniformMap mCollectedUniformMap[2]; ///< Uniform maps collected by the renderer
456 SceneController* mSceneController; ///< Used for initializing renderers
457 Render::Renderer* mRenderer; ///< Raw pointer to the renderer (that's owned by RenderManager)
458 TextureSet* mTextureSet; ///< The texture set this renderer uses. (Not owned)
459 Render::Geometry* mGeometry; ///< The geometry this renderer uses. (Not owned)
460 Shader* mShader; ///< The shader this renderer uses. (Not owned)
461 RenderDataProvider* mRenderDataProvider; ///< The render data provider
462 OwnerPointer<Vector4> mBlendColor; ///< The blend color for blending operation
464 Dali::Internal::Render::Renderer::StencilParameters mStencilParameters; ///< Struct containing all stencil related options
466 uint32_t mIndexedDrawFirstElement; ///< first element index to be drawn using indexed draw
467 uint32_t mIndexedDrawElementsCount; ///< number of elements to be drawn using indexed draw
468 uint32_t mBlendBitmask; ///< The bitmask of blending options
469 uint32_t mRegenerateUniformMap; ///< 2 if the map should be regenerated, 1 if it should be copied.
470 uint32_t mResendFlag; ///< Indicate whether data should be resent to the renderer
472 DepthFunction::Type mDepthFunction : 4; ///< Local copy of the depth function
473 FaceCullingMode::Type mFaceCullingMode : 3; ///< Local copy of the mode of face culling
474 BlendMode::Type mBlendMode : 3; ///< Local copy of the mode of blending
475 DepthWriteMode::Type mDepthWriteMode : 3; ///< Local copy of the depth write mode
476 DepthTestMode::Type mDepthTestMode : 3; ///< Local copy of the depth test mode
477 DevelRenderer::Rendering::Type mRenderingBehavior : 2; ///< The rendering behavior
478 bool mUniformMapChanged[2]; ///< Records if the uniform map has been altered this frame
479 bool mPremultipledAlphaEnabled : 1; ///< Flag indicating whether the Pre-multiplied Alpha Blending is required
481 std::vector<Dali::DevelRenderer::DrawCommand> mDrawCommands;
484 AnimatableProperty<float> mOpacity; ///< The opacity value
485 int32_t mDepthIndex; ///< Used only in PrepareRenderInstructions
489 inline void SetTexturesMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, const TextureSet& textureSet)
491 using LocalType = MessageValue1<Renderer, TextureSet*>;
493 // Reserve some memory inside the message queue
494 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
496 // Construct message in the message queue memory; note that delete should not be called on the return value
497 new(slot) LocalType(&renderer, &Renderer::SetTextures, const_cast<TextureSet*>(&textureSet));
500 inline void SetGeometryMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, const Render::Geometry& geometry)
502 using LocalType = MessageValue1<Renderer, Render::Geometry*>;
504 // Reserve some memory inside the message queue
505 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
507 // Construct message in the message queue memory; note that delete should not be called on the return value
508 new(slot) LocalType(&renderer, &Renderer::SetGeometry, const_cast<Render::Geometry*>(&geometry));
511 inline void SetShaderMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, const Shader& shader)
513 using LocalType = MessageValue1<Renderer, Shader*>;
515 // Reserve some memory inside the message queue
516 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
518 // Construct message in the message queue memory; note that delete should not be called on the return value
519 new(slot) LocalType(&renderer, &Renderer::SetShader, const_cast<Shader*>(&shader));
522 inline void SetDepthIndexMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, int depthIndex)
524 using LocalType = MessageValue1<Renderer, int>;
526 // Reserve some memory inside the message queue
527 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
529 // Construct message in the message queue memory; note that delete should not be called on the return value
530 new(slot) LocalType(&renderer, &Renderer::SetDepthIndex, depthIndex);
533 inline void SetFaceCullingModeMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, FaceCullingMode::Type faceCullingMode)
535 using LocalType = MessageValue1<Renderer, FaceCullingMode::Type>;
537 // Reserve some memory inside the message queue
538 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
540 new(slot) LocalType(&renderer, &Renderer::SetFaceCullingMode, faceCullingMode);
543 inline void SetBlendModeMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, BlendMode::Type blendingMode)
545 using LocalType = MessageValue1<Renderer, BlendMode::Type>;
547 // Reserve some memory inside the message queue
548 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
550 new(slot) LocalType(&renderer, &Renderer::SetBlendMode, blendingMode);
553 inline void SetBlendingOptionsMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, uint32_t options)
555 using LocalType = MessageValue1<Renderer, uint32_t>;
557 // Reserve some memory inside the message queue
558 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
560 new(slot) LocalType(&renderer, &Renderer::SetBlendingOptions, options);
563 inline void SetBlendColorMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, const Vector4& blendColor)
565 using LocalType = MessageValue1<Renderer, Vector4>;
567 // Reserve some memory inside the message queue
568 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
570 new(slot) LocalType(&renderer, &Renderer::SetBlendColor, blendColor);
573 inline void SetIndexedDrawFirstElementMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, uint32_t firstElement)
575 using LocalType = MessageValue1<Renderer, uint32_t>;
577 // Reserve some memory inside the message queue
578 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
580 new(slot) LocalType(&renderer, &Renderer::SetIndexedDrawFirstElement, firstElement);
583 inline void SetIndexedDrawElementsCountMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, uint32_t elementsCount)
585 using LocalType = MessageValue1<Renderer, uint32_t>;
587 // Reserve some memory inside the message queue
588 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
590 new(slot) LocalType(&renderer, &Renderer::SetIndexedDrawElementsCount, elementsCount);
593 inline void SetEnablePreMultipliedAlphaMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, bool preMultiplied)
595 using LocalType = MessageValue1<Renderer, bool>;
597 // Reserve some memory inside the message queue
598 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
600 new(slot) LocalType(&renderer, &Renderer::EnablePreMultipliedAlpha, preMultiplied);
603 inline void SetDepthWriteModeMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, DepthWriteMode::Type depthWriteMode)
605 using LocalType = MessageValue1<Renderer, DepthWriteMode::Type>;
607 // Reserve some memory inside the message queue
608 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
610 new(slot) LocalType(&renderer, &Renderer::SetDepthWriteMode, depthWriteMode);
613 inline void SetDepthTestModeMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, DepthTestMode::Type depthTestMode)
615 using LocalType = MessageValue1<Renderer, DepthTestMode::Type>;
617 // Reserve some memory inside the message queue
618 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
620 new(slot) LocalType(&renderer, &Renderer::SetDepthTestMode, depthTestMode);
623 inline void SetDepthFunctionMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, DepthFunction::Type depthFunction)
625 using LocalType = MessageValue1<Renderer, DepthFunction::Type>;
627 // Reserve some memory inside the message queue
628 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
630 new(slot) LocalType(&renderer, &Renderer::SetDepthFunction, depthFunction);
633 inline void SetRenderModeMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, RenderMode::Type mode)
635 using LocalType = MessageValue1<Renderer, RenderMode::Type>;
637 // Reserve some memory inside the message queue
638 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
640 new(slot) LocalType(&renderer, &Renderer::SetRenderMode, mode);
643 inline void SetStencilFunctionMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, StencilFunction::Type stencilFunction)
645 using LocalType = MessageValue1<Renderer, StencilFunction::Type>;
647 // Reserve some memory inside the message queue
648 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
650 new(slot) LocalType(&renderer, &Renderer::SetStencilFunction, stencilFunction);
653 inline void SetStencilFunctionMaskMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, int mask)
655 using LocalType = MessageValue1<Renderer, int>;
657 // Reserve some memory inside the message queue
658 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
660 new(slot) LocalType(&renderer, &Renderer::SetStencilFunctionMask, mask);
663 inline void SetStencilFunctionReferenceMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, int stencilFunctionReference)
665 using LocalType = MessageValue1<Renderer, int>;
667 // Reserve some memory inside the message queue
668 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
670 new(slot) LocalType(&renderer, &Renderer::SetStencilFunctionReference, stencilFunctionReference);
673 inline void SetStencilMaskMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, int stencilMask)
675 using LocalType = MessageValue1<Renderer, int>;
677 // Reserve some memory inside the message queue
678 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
680 new(slot) LocalType(&renderer, &Renderer::SetStencilMask, stencilMask);
683 inline void SetStencilOperationOnFailMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, StencilOperation::Type stencilOperation)
685 using LocalType = MessageValue1<Renderer, StencilOperation::Type>;
687 // Reserve some memory inside the message queue
688 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
690 new(slot) LocalType(&renderer, &Renderer::SetStencilOperationOnFail, stencilOperation);
693 inline void SetStencilOperationOnZFailMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, StencilOperation::Type stencilOperation)
695 using LocalType = MessageValue1<Renderer, StencilOperation::Type>;
697 // Reserve some memory inside the message queue
698 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
700 new(slot) LocalType(&renderer, &Renderer::SetStencilOperationOnZFail, stencilOperation);
703 inline void SetStencilOperationOnZPassMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, StencilOperation::Type stencilOperation)
705 using LocalType = MessageValue1<Renderer, StencilOperation::Type>;
707 // Reserve some memory inside the message queue
708 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
710 new(slot) LocalType(&renderer, &Renderer::SetStencilOperationOnZPass, stencilOperation);
713 inline void BakeOpacityMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, float opacity)
715 using LocalType = MessageDoubleBuffered1<Renderer, float>;
717 // Reserve some memory inside the message queue
718 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
720 new(slot) LocalType(&renderer, &Renderer::BakeOpacity, opacity);
723 inline void SetRenderingBehaviorMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, DevelRenderer::Rendering::Type renderingBehavior)
725 using LocalType = MessageValue1<Renderer, DevelRenderer::Rendering::Type>;
727 // Reserve some memory inside the message queue
728 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
730 new(slot) LocalType(&renderer, &Renderer::SetRenderingBehavior, renderingBehavior);
733 inline void SetDrawCommandsMessage(EventThreadServices& eventThreadServices, const Renderer& renderer, Dali::DevelRenderer::DrawCommand* pDrawCommands, uint32_t size)
735 using LocalType = MessageValue2<Renderer, Dali::DevelRenderer::DrawCommand*, uint32_t>;
737 // Reserve some memory inside the message queue
738 uint32_t* slot = eventThreadServices.ReserveMessageSlot(sizeof(LocalType));
740 new(slot) LocalType(&renderer, &Renderer::SetDrawCommands, pDrawCommands, size);
743 } // namespace SceneGraph
744 } // namespace Internal
747 #endif // DALI_INTERNAL_SCENE_GRAPH_RENDERER_H