OverviewFilesCommitsIssuesDocsReleasesPeers

nvidia-rtx-godot / doc / classes / RDVertexAttribute.xml

33 lines · xml ref:
<?xml version="1.0" encoding="UTF-8" ?>
<class name="RDVertexAttribute" inherits="RefCounted" api_type="core" 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>