Technique FX Composer 2 extension: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Mlaban (talk | contribs)
No edit summary
 
Elf (talk | contribs)
extensions->extension
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{extensions|company=NVIDIA|product=FX Composer 2}}
{{extension|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="NVIDIA_FXCOMPOSER">
            <technique profile="NVIDIA">
            <import compiler_options="-D DEFINE"/>
                <share name="SharedSurface"/>
        </technique>
            </technique>
    </extra>
        </extra>
  </technique>
    </surface>
  </setparam>

Latest revision as of 05:00, 23 February 2009

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="NVIDIA_FXCOMPOSER">
           <import compiler_options="-D DEFINE"/>
       </technique>
   </extra>
</technique>