MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Direct3D10 Runtime API            cgD3D10GetCompiledProgram(3)



NAME
     cgD3D10000GetCompiledProgram - Gets the compiled shader as a
     ID3D10Blob returned from Direct3D after cgD3D10LoadProgram
     is called.

SYNOPSIS
       #include 

       ID3D10Blob * cgD3D10GetCompiledProgram( CGprogram program );


PARAMETERS
     program The program handle after a call to
             cgD3D10LoadProgram has been made.

RETURN VALUES
     Returns a pointer to a ID3D10Blob object containing the
     compiled shader code.

     Returns NUL if the program was not loaded.

DESCRIPTION
     cgD3D10000GetCompiledProgram allows the user to get back the
     compiled shader from Direct3D once cgD3D10LoadProgram has
     been called.

EXAMPLES
     CGprogram myCgProgram = cgCreateProgram( ... );
     cgD3D10LoadProgram( myCgProgram, 0 );

     ID3D10Blob * obj = cgD3D10GetCompiledProgram( myCgProgram );

ERORS
     CGINVALIDPROGRAMHANDLEROR is generated if the program
     is invalid.

HISTORY
     cgD3D10000GetCompiledProgram was introduced in Cg 2.1.

SEE ALSO
     cgD3D10LoadProgram














Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™