: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/RDAccelerationStructureInstance.xml. .. _class_RDAccelerationStructureInstance: RDAccelerationStructureInstance =============================== **Experimental:** This class may be changed or removed in future versions. **Inherits:** :ref:`RefCounted` **<** :ref:`Object` Acceleration structure instance (used by :ref:`RenderingDevice`). .. rst-class:: classref-introduction-group Description ----------- **RDAccelerationStructureInstance** describes an instance of a Bottom-Level Acceleration Structure (BLAS) used in the :ref:`RenderingDevice.tlas_build()` method. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`RID` | :ref:`blas` | ``RID()`` | +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | |bitfield|\[:ref:`AccelerationStructureInstanceFlagBits`\] | :ref:`flags` | ``0`` | +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`int` | :ref:`hit_sbt_range` | ``0`` | +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`int` | :ref:`id` | ``0`` | +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`int` | :ref:`mask` | ``255`` | +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`Transform3D` | :ref:`transform` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` | +------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_RDAccelerationStructureInstance_property_blas: .. rst-class:: classref-property :ref:`RID` **blas** = ``RID()`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_blas**\ (\ value\: :ref:`RID`\ ) - :ref:`RID` **get_blas**\ (\ ) The BLAS referenced by this instance. If ``null``, the instance is treated as a placeholder but still contributes to ``gl_InstanceIndex`` in GLSL. .. rst-class:: classref-item-separator ---- .. _class_RDAccelerationStructureInstance_property_flags: .. rst-class:: classref-property |bitfield|\[:ref:`AccelerationStructureInstanceFlagBits`\] **flags** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_flags**\ (\ value\: |bitfield|\[:ref:`AccelerationStructureInstanceFlagBits`\]\ ) - |bitfield|\[:ref:`AccelerationStructureInstanceFlagBits`\] **get_flags**\ (\ ) Flags for the instance. .. rst-class:: classref-item-separator ---- .. _class_RDAccelerationStructureInstance_property_hit_sbt_range: .. rst-class:: classref-property :ref:`int` **hit_sbt_range** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_hit_sbt_range**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_hit_sbt_range**\ (\ ) Hit shader binding table range used for this instance, allocated using the :ref:`RenderingDevice.hit_sbt_range_alloc()` method. .. rst-class:: classref-item-separator ---- .. _class_RDAccelerationStructureInstance_property_id: .. rst-class:: classref-property :ref:`int` **id** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_id**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_id**\ (\ ) Custom instance ID that can be accessed in GLSL using ``gl_InstanceCustomIndexEXT``. .. rst-class:: classref-item-separator ---- .. _class_RDAccelerationStructureInstance_property_mask: .. rst-class:: classref-property :ref:`int` **mask** = ``255`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_mask**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_mask**\ (\ ) Visibility mask used to control which rays can intersect this instance. .. rst-class:: classref-item-separator ---- .. _class_RDAccelerationStructureInstance_property_transform: .. rst-class:: classref-property :ref:`Transform3D` **transform** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_transform**\ (\ value\: :ref:`Transform3D`\ ) - :ref:`Transform3D` **get_transform**\ (\ ) Transform applied to the referenced BLAS for this instance. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |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.)`