Difference between revisions of "Technique FX Composer 2 extension"

From COLLADA Public Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{extensions|company=NVIDIA|product=FX Composer 2}}
 
{{extensions|company=NVIDIA|product=FX Composer 2}}
  
== Shared Surfaces Definition ==
+
== ColladaFX CG Compiler Options ==
This extra at the surface level is used to define the name of the shared surface to use for the current parameter.
+
FX Composer 2.0 added the possibility to set compiler options on a per technique level. This information is stored in an extra at the technique level.
  
 
{| border=1 cellspacing=0 cellpadding=3 align=center
 
{| border=1 cellspacing=0 cellpadding=3 align=center
 
|-
 
|-
!width=20%| <share> Attributes !! Description  
+
!width=20%| <import> Attributes !! Description  
 
|-
 
|-
| name|| The name of the shared surface
+
| compiler_options || The compiler options for the current technique
 
|}
 
|}
  
 
== Example ==
 
== Example ==
  <setparam ref="SurfColorAmbient">
+
  <technique sid="Main">
     <surface type="2D">
+
     <pass sid="p0">
        <init_as_target/>
+
      [...]
        <format>X8B8G8R8</format>
+
    </pass>
        <viewport_ratio>1 1</viewport_ratio>
+
    <extra type="import">
        <extra type="share">
+
        <technique profile="NV_import">
            <technique profile="NVIDIA">
+
            <import compiler_options="-D DEFINE"/>
                <share name="SharedSurface"/>
+
        </technique>
            </technique>
+
    </extra>
        </extra>
+
  </technique>
    </surface>
 
  </setparam>
 

Revision as of 22:47, 13 June 2007

Extension information
  • Purpose: unstated
  • Company(s): NVIDIA
  • Product(s): FX Composer 2
  • Last updated: unstated
  • Contact for technical issues:
This article is part of the COLLADA extensions directory
Adding to the extensions directory

ColladaFX CG Compiler Options

FX Composer 2.0 added the possibility to set compiler options on a per technique level. This information is stored in an extra at the technique level.

<import> Attributes Description
compiler_options The compiler options for the current technique

Example

<technique sid="Main">
   <pass sid="p0">
     [...]
   </pass>
   <extra type="import">
       <technique profile="NV_import">
           <import compiler_options="-D DEFINE"/>
       </technique>
   </extra>
</technique>