123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- :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/RDPipelineRasterizationState.xml.
- .. _class_RDPipelineRasterizationState:
- RDPipelineRasterizationState
- ============================
- **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- Pipeline rasterization state (used by :ref:`RenderingDevice<class_RenderingDevice>`).
- .. rst-class:: classref-introduction-group
- Description
- -----------
- This object is used by :ref:`RenderingDevice<class_RenderingDevice>`.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` | :ref:`cull_mode<class_RDPipelineRasterizationState_property_cull_mode>` | ``0`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`depth_bias_clamp<class_RDPipelineRasterizationState_property_depth_bias_clamp>` | ``0.0`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`depth_bias_constant_factor<class_RDPipelineRasterizationState_property_depth_bias_constant_factor>` | ``0.0`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`depth_bias_enabled<class_RDPipelineRasterizationState_property_depth_bias_enabled>` | ``false`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`depth_bias_slope_factor<class_RDPipelineRasterizationState_property_depth_bias_slope_factor>` | ``0.0`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`discard_primitives<class_RDPipelineRasterizationState_property_discard_primitives>` | ``false`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`enable_depth_clamp<class_RDPipelineRasterizationState_property_enable_depth_clamp>` | ``false`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` | :ref:`front_face<class_RDPipelineRasterizationState_property_front_face>` | ``0`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`line_width<class_RDPipelineRasterizationState_property_line_width>` | ``1.0`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`patch_control_points<class_RDPipelineRasterizationState_property_patch_control_points>` | ``1`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`wireframe<class_RDPipelineRasterizationState_property_wireframe>` | ``false`` |
- +----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+-----------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_RDPipelineRasterizationState_property_cull_mode:
- .. rst-class:: classref-property
- :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **cull_mode** = ``0`` :ref:`🔗<class_RDPipelineRasterizationState_property_cull_mode>`
- .. rst-class:: classref-property-setget
- - |void| **set_cull_mode**\ (\ value\: :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>`\ )
- - :ref:`PolygonCullMode<enum_RenderingDevice_PolygonCullMode>` **get_cull_mode**\ (\ )
- The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_depth_bias_clamp:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **depth_bias_clamp** = ``0.0`` :ref:`🔗<class_RDPipelineRasterizationState_property_depth_bias_clamp>`
- .. rst-class:: classref-property-setget
- - |void| **set_depth_bias_clamp**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_depth_bias_clamp**\ (\ )
- A limit for how much each depth value can be offset. If negative, it serves as a minimum value, but if positive, it serves as a maximum value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_depth_bias_constant_factor:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **depth_bias_constant_factor** = ``0.0`` :ref:`🔗<class_RDPipelineRasterizationState_property_depth_bias_constant_factor>`
- .. rst-class:: classref-property-setget
- - |void| **set_depth_bias_constant_factor**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_depth_bias_constant_factor**\ (\ )
- A constant offset added to each depth value. Applied after :ref:`depth_bias_slope_factor<class_RDPipelineRasterizationState_property_depth_bias_slope_factor>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_depth_bias_enabled:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **depth_bias_enabled** = ``false`` :ref:`🔗<class_RDPipelineRasterizationState_property_depth_bias_enabled>`
- .. rst-class:: classref-property-setget
- - |void| **set_depth_bias_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_depth_bias_enabled**\ (\ )
- If ``true``, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of :ref:`depth_bias_slope_factor<class_RDPipelineRasterizationState_property_depth_bias_slope_factor>` and :ref:`depth_bias_constant_factor<class_RDPipelineRasterizationState_property_depth_bias_constant_factor>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_depth_bias_slope_factor:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **depth_bias_slope_factor** = ``0.0`` :ref:`🔗<class_RDPipelineRasterizationState_property_depth_bias_slope_factor>`
- .. rst-class:: classref-property-setget
- - |void| **set_depth_bias_slope_factor**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_depth_bias_slope_factor**\ (\ )
- A constant scale applied to the slope of each polygons' depth. Applied before :ref:`depth_bias_constant_factor<class_RDPipelineRasterizationState_property_depth_bias_constant_factor>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_discard_primitives:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **discard_primitives** = ``false`` :ref:`🔗<class_RDPipelineRasterizationState_property_discard_primitives>`
- .. rst-class:: classref-property-setget
- - |void| **set_discard_primitives**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_discard_primitives**\ (\ )
- If ``true``, primitives are discarded immediately before the rasterization stage.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_enable_depth_clamp:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **enable_depth_clamp** = ``false`` :ref:`🔗<class_RDPipelineRasterizationState_property_enable_depth_clamp>`
- .. rst-class:: classref-property-setget
- - |void| **set_enable_depth_clamp**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_enable_depth_clamp**\ (\ )
- If ``true``, clamps depth values according to the minimum and maximum depth of the associated viewport.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_front_face:
- .. rst-class:: classref-property
- :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` **front_face** = ``0`` :ref:`🔗<class_RDPipelineRasterizationState_property_front_face>`
- .. rst-class:: classref-property-setget
- - |void| **set_front_face**\ (\ value\: :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>`\ )
- - :ref:`PolygonFrontFace<enum_RenderingDevice_PolygonFrontFace>` **get_front_face**\ (\ )
- The winding order to use to determine which face of a triangle is considered its front face.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_line_width:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **line_width** = ``1.0`` :ref:`🔗<class_RDPipelineRasterizationState_property_line_width>`
- .. rst-class:: classref-property-setget
- - |void| **set_line_width**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_line_width**\ (\ )
- The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_patch_control_points:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **patch_control_points** = ``1`` :ref:`🔗<class_RDPipelineRasterizationState_property_patch_control_points>`
- .. rst-class:: classref-property-setget
- - |void| **set_patch_control_points**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_patch_control_points**\ (\ )
- The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.
- .. rst-class:: classref-item-separator
- ----
- .. _class_RDPipelineRasterizationState_property_wireframe:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **wireframe** = ``false`` :ref:`🔗<class_RDPipelineRasterizationState_property_wireframe>`
- .. rst-class:: classref-property-setget
- - |void| **set_wireframe**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_wireframe**\ (\ )
- If ``true``, performs wireframe rendering for triangles instead of flat or textured rendering.
- .. |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.)`
|