Files
godot-docs-l10n/classes/es/class_rdvertexattribute.rst
Rémi Verschelde c3f2364c10 Sync classref with 4.6 branch
Lots of translations invalidated (fuzzied) as we just synced Weblate.
2025-12-19 16:39:51 +01:00

159 lines
6.8 KiB
ReStructuredText

:github_url: hide
.. _class_RDVertexAttribute:
RDVertexAttribute
=================
**Hereda:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
Atributo de vértice (utilizado por :ref:`RenderingDevice<class_RenderingDevice>`).
.. rst-class:: classref-introduction-group
Descripción
----------------------
Este objeto es utilizado por :ref:`RenderingDevice<class_RenderingDevice>`.
.. rst-class:: classref-reftable-group
Propiedades
----------------------
.. table::
:widths: auto
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
| :ref:`int<class_int>` | :ref:`binding<class_RDVertexAttribute_property_binding>` | ``4294967295`` |
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
| :ref:`DataFormat<enum_RenderingDevice_DataFormat>` | :ref:`format<class_RDVertexAttribute_property_format>` | ``232`` |
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
| :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` | :ref:`frequency<class_RDVertexAttribute_property_frequency>` | ``0`` |
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
| :ref:`int<class_int>` | :ref:`location<class_RDVertexAttribute_property_location>` | ``0`` |
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
| :ref:`int<class_int>` | :ref:`offset<class_RDVertexAttribute_property_offset>` | ``0`` |
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
| :ref:`int<class_int>` | :ref:`stride<class_RDVertexAttribute_property_stride>` | ``0`` |
+--------------------------------------------------------------+--------------------------------------------------------------+----------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Descripciones de Propiedades
--------------------------------------------------------
.. _class_RDVertexAttribute_property_binding:
.. rst-class:: classref-property
:ref:`int<class_int>` **binding** = ``4294967295`` :ref:`🔗<class_RDVertexAttribute_property_binding>`
.. rst-class:: classref-property-setget
- |void| **set_binding**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_binding**\ (\ )
The index of the buffer in the vertex buffer array to bind this vertex attribute. When set to ``-1``, it defaults to the index of the attribute.
\ **Note:** You cannot mix binding explicitly assigned attributes with implicitly assigned ones (i.e. ``-1``). Either all attributes must have their binding set to ``-1``, or all must have explicit bindings.
.. rst-class:: classref-item-separator
----
.. _class_RDVertexAttribute_property_format:
.. rst-class:: classref-property
:ref:`DataFormat<enum_RenderingDevice_DataFormat>` **format** = ``232`` :ref:`🔗<class_RDVertexAttribute_property_format>`
.. rst-class:: classref-property-setget
- |void| **set_format**\ (\ value\: :ref:`DataFormat<enum_RenderingDevice_DataFormat>`\ )
- :ref:`DataFormat<enum_RenderingDevice_DataFormat>` **get_format**\ (\ )
La forma en que los datos de este atributo se interpretan cuando se envían a un shader.
.. rst-class:: classref-item-separator
----
.. _class_RDVertexAttribute_property_frequency:
.. rst-class:: classref-property
:ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **frequency** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_frequency>`
.. rst-class:: classref-property-setget
- |void| **set_frequency**\ (\ value\: :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>`\ )
- :ref:`VertexFrequency<enum_RenderingDevice_VertexFrequency>` **get_frequency**\ (\ )
La velocidad a la que este atributo se extrae de su búfer de vértices.
.. rst-class:: classref-item-separator
----
.. _class_RDVertexAttribute_property_location:
.. rst-class:: classref-property
:ref:`int<class_int>` **location** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_location>`
.. rst-class:: classref-property-setget
- |void| **set_location**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_location**\ (\ )
La ubicación en el shader al que está enlazado este atributo.
.. rst-class:: classref-item-separator
----
.. _class_RDVertexAttribute_property_offset:
.. rst-class:: classref-property
:ref:`int<class_int>` **offset** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_offset>`
.. rst-class:: classref-property-setget
- |void| **set_offset**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_offset**\ (\ )
El número de bytes entre el inicio del búfer de vértices y la primera instancia de este atributo.
.. rst-class:: classref-item-separator
----
.. _class_RDVertexAttribute_property_stride:
.. rst-class:: classref-property
:ref:`int<class_int>` **stride** = ``0`` :ref:`🔗<class_RDVertexAttribute_property_stride>`
.. rst-class:: classref-property-setget
- |void| **set_stride**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_stride**\ (\ )
El número de bytes entre el inicio de instancias consecutivas de este atributo.
.. |virtual| replace:: :abbr:`virtual (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
.. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)`
.. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)`
.. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)`
.. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)`
.. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)`
.. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)`
.. |void| replace:: :abbr:`void (Sin valor de retorno.)`