shader

compile shader stages

Element Information

Model

Children: extra, sources

Attributes

QName Type Fixed Default Use Inheritable Annotation
stage fx_pipeline_stage_enum required
GPU Pipeline stage for this programmable shader. Current standards are VERTEX (vertex shader), FRAGMENT (pixel or fragment shader).  These are recognized by both GLSL and CG

Source

<xs:element name="shader" type="glsl_shader_type" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>compile shader stages</xs:documentation>
  </xs:annotation>
</xs:element>

Sample