usertype

Element Information

Model

Children: setparam

Attributes

QName Type Fixed Default Use Inheritable Annotation
typename xs:token required
Symbol for type or structure in shader code.   This aids in type-checking, resolution of bindings, and support interfaces

Source

<xs:element name="usertype">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="setparam" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Use a series of these to set the members by name. The ref attribute will be relative to the struct you are in right now.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:group ref="gles2_value_group" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="ref" type="xs:token" use="required">
            <xs:annotation>
              <xs:documentation>Symbol name of the member</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="typename" type="xs:token" use="required">
      <xs:annotation>
        <xs:documentation>Symbol for type or structure in shader code. This aids in type-checking, resolution of bindings, and support interfaces</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample