<!--
===========================================================================
Copyright 2015 Autodesk, Inc. All rights reserved.

Use of this software is subject to the terms of the Autodesk license
agreement provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
===========================================================================

Support fragment for float pass through
-->

<fragment  uiName="floatSubtract" name="floatSubtract" type="plumbing" class="ShadeFragment" version="1.0" feature_level="0" >
    <description><![CDATA[Pass through fragment for float type.]]></description>
    <properties>
        <float  name="floatA" />
        <float  name="floatB" />
    </properties>
    <values>
        <float name="floatA" value="1.0" />
        <float name="floatB" value="0.0" />
    </values>
    <outputs>
        <float  name="floatSubtract" />
    </outputs>
    <implementation  >
    <implementation  render="OGSRenderer" language="Cg" lang_version="2.1" >
        <function_name val="floatSubtract" />
        <source>
            <![CDATA[
float floatSubtract(float floatA, float floatB)
{
	return floatA - floatB;
}
            ]]>
        </source>
    </implementation>
    <implementation  render="OGSRenderer" language="HLSL" lang_version="11.0" >
        <function_name val="floatSubtract" />
        <source>
            <![CDATA[
float floatSubtract(float floatA, float floatB)
{
	return floatA - floatB;
}
            ]]>
        </source>
    </implementation>
    <implementation render="OGSRenderer" language="GLSL" lang_version="3.0">
        <function_name val="floatSubtract" />
        <source>
            <![CDATA[
float floatSubtract(float floatA, float floatB)
{
	return floatA - floatB;
}
            ]]>
        </source>
    </implementation>
    </implementation>
</fragment>

#