You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
- Add support for vertex bindings and UMA vertex buffers in D3D12. - Simplify 2D instance params and move more into per-batch data to save bandwidth Co-authored-by: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Co-authored-by: Clay John <claynjohn@gmail.com> Co-authored-by: A Thousand Ships <96648715+athousandships@users.noreply.github.com>
33 lines
1.9 KiB
XML
33 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="RDVertexAttribute" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Vertex attribute (used by [RenderingDevice]).
|
|
</brief_description>
|
|
<description>
|
|
This object is used by [RenderingDevice].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<members>
|
|
<member name="binding" type="int" setter="set_binding" getter="get_binding" default="4294967295">
|
|
The index of the buffer in the vertex buffer array to bind this vertex attribute. When set to [code]-1[/code], it defaults to the index of the attribute.
|
|
[b]Note:[/b] You cannot mix binding explicitly assigned attributes with implicitly assigned ones (i.e. [code]-1[/code]). Either all attributes must have their binding set to [code]-1[/code], or all must have explicit bindings.
|
|
</member>
|
|
<member name="format" type="int" setter="set_format" getter="get_format" enum="RenderingDevice.DataFormat" default="232">
|
|
The way that this attribute's data is interpreted when sent to a shader.
|
|
</member>
|
|
<member name="frequency" type="int" setter="set_frequency" getter="get_frequency" enum="RenderingDevice.VertexFrequency" default="0">
|
|
The rate at which this attribute is pulled from its vertex buffer.
|
|
</member>
|
|
<member name="location" type="int" setter="set_location" getter="get_location" default="0">
|
|
The location in the shader that this attribute is bound to.
|
|
</member>
|
|
<member name="offset" type="int" setter="set_offset" getter="get_offset" default="0">
|
|
The number of bytes between the start of the vertex buffer and the first instance of this attribute.
|
|
</member>
|
|
<member name="stride" type="int" setter="set_stride" getter="get_stride" default="0">
|
|
The number of bytes between the starts of consecutive instances of this attribute.
|
|
</member>
|
|
</members>
|
|
</class>
|