![]() |
Murl Engine API
Version 2018.3
|
The XML shader resource class. More...
#include <murl_resource_xml_shader.h>
The XML shader resource class.
An XML shader file is recognized by its <Shader> root element. The root element accepts the following attributes:
The following child elements are allowed for the root element:
The <Constants> element allows the following child elements:
The following attributes are accepted in an <Constant> tag:
The <Attributes> element allows the following child elements:
The following attributes are accepted in an <Attribute> tag:
The <ConstantBuffers> element allows the following child elements:
The following attributes are accepted in an <ConstantBuffer> tag:
The <ConstantBuffer> element allows the following child elements:
The following attributes are accepted in an <Uniform> tag:
The <Varyings> element allows the following child elements:
The following attributes are accepted in an <Varying> tag:
The <Textures> element allows the following child elements:
The following attributes are accepted in an <Texture> tag:
The <VertexPrefix> element is used to specify an optional prefix part of the vertex shader. The actual code should be put inside a CDATA section (<![CDATA[
... ]]>
). The <VertexPrefix> element accepts the following attributes:
The <FragmentPrefix> element is used to specify an optional prefix part of the fragment shader. The actual code should be put inside a CDATA section (<![CDATA[
... ]]>
). The <FragmentPrefix> element accepts the following attributes:
The <VertexSource> element is used to specify the vertex shader source code. The actual code should be put inside a CDATA section (<![CDATA[
... ]]>
). The <VertexSource> element accepts the following attributes:
The <FragmentSource> element is used to specify the fragment shader source code. The actual code should be put inside a CDATA section (<![CDATA[
... ]]>
). The <FragmentSource> element accepts the following attributes:
Example of an XML shader file:
Use the <Resource> tag in a .murlres package's resource.xml file to specify an XML shader resource. See Resource::Object.
Additional Inherited Members | |
![]() | |
typedef Array< const ClassInfo *> | ClassInfoArray |
Definition of an array of ClassInfo objects. More... | |
![]() | |
virtual | ~IFactoryObject () |
The destructor. More... | |
virtual const ClassInfo * | GetObjectClassInfo () const=0 |
Get the object instance's class info, if present. More... | |
virtual void | ResetObjectProperties ()=0 |
Reset the object instance's properties to their default values. | |
![]() | |
static const PropertyInfo * | GetPropertyInfo () |
Get the class' property info struct. More... | |
static const AttributeInfo * | GetAttributeInfo () |
Get the class' attribute info struct. More... | |
static void | ResetProperties (IFactoryObject< IObject > *object) |
Reset an object instance's properties to their default values. More... | |