<buffer> (//pfx/buffer)

A <buffer> element defines a buffer that could be used as a uniform, storage, or atomic buffer by an effect

A <buffer> element defines a buffer that may be used as a uniform, storage or atomic buffer by an effect. The buffer element does not define the usage or binding of a buffer, only the layout.

The usage is defined when referenced in the <buffer> element of a <pipeline>.

XML attributes (<buffer> element)

ATTRIBUTES

Description

name

A text identifier for this buffer. Mandatory.

apiVersion

(OPTIONAL) A string describing for which API versions this element will be active. If omitted, always active.

layout

(OPTIONAL) The layout standard that this buffer adheres to.

The default is STD140, but STD430 may also be supported. Any other valid values are implementation-dependent.

Child elements (<buffer> element)

ELEMENT

Description

<entry>

Describe fields (variables) in a buffer.

The list must be ordered and complete, in other words it must define all variables that make up this buffer, in order, so that the implementation may correctly provide the buffer.