:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RDPipelineColorBlendState.xml. .. _class_RDPipelineColorBlendState: RDPipelineColorBlendState ========================= **Inherits:** :ref:`RefCounted` **<** :ref:`Object` Pipeline color blend state (used by :ref:`RenderingDevice`). .. rst-class:: classref-introduction-group Description ----------- This object is used by :ref:`RenderingDevice`. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------+-----------------------+ | :ref:`Array`\[:ref:`RDPipelineColorBlendStateAttachment`\] | :ref:`attachments` | ``[]`` | +--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------+-----------------------+ | :ref:`Color` | :ref:`blend_constant` | ``Color(0, 0, 0, 1)`` | +--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------+-----------------------+ | :ref:`bool` | :ref:`enable_logic_op` | ``false`` | +--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------+-----------------------+ | :ref:`LogicOperation` | :ref:`logic_op` | ``0`` | +--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------+-----------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_RDPipelineColorBlendState_property_attachments: .. rst-class:: classref-property :ref:`Array`\[:ref:`RDPipelineColorBlendStateAttachment`\] **attachments** = ``[]`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_attachments**\ (\ value\: :ref:`Array`\[:ref:`RDPipelineColorBlendStateAttachment`\]\ ) - :ref:`Array`\[:ref:`RDPipelineColorBlendStateAttachment`\] **get_attachments**\ (\ ) The attachments that are blended together. .. rst-class:: classref-item-separator ---- .. _class_RDPipelineColorBlendState_property_blend_constant: .. rst-class:: classref-property :ref:`Color` **blend_constant** = ``Color(0, 0, 0, 1)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_blend_constant**\ (\ value\: :ref:`Color`\ ) - :ref:`Color` **get_blend_constant**\ (\ ) The constant color to blend with. See also :ref:`RenderingDevice.draw_list_set_blend_constants`. .. rst-class:: classref-item-separator ---- .. _class_RDPipelineColorBlendState_property_enable_logic_op: .. rst-class:: classref-property :ref:`bool` **enable_logic_op** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_enable_logic_op**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_enable_logic_op**\ (\ ) If ``true``, performs the logic operation defined in :ref:`logic_op`. .. rst-class:: classref-item-separator ---- .. _class_RDPipelineColorBlendState_property_logic_op: .. rst-class:: classref-property :ref:`LogicOperation` **logic_op** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_logic_op**\ (\ value\: :ref:`LogicOperation`\ ) - :ref:`LogicOperation` **get_logic_op**\ (\ ) The logic operation to perform for blending. Only effective if :ref:`enable_logic_op` is ``true``. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`