MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Direct3D10 Runtime API              cgD3D10GetBufferByIndex(3)



NAME
     cgD3D10000GetBufferByIndex - Returns a pointer to an
     ID3D10Buffer interface by the conststant buffer index.

SYNOPSIS
       #include 

       ID3D10Buffer * cgD3D10GetBufferByIndex( CGprogram Program.
                                               UINT Index );


PARAMETERS
     Program The Cg program containing the buffer.

     Index   A zero-based index.

RETURN VALUES
     Returns a pointer to an ID3D10Buffer interface containing
     the constant buffer.

DESCRIPTION
     cgD3D10000GetBufferByIndex returns a pointer to an ID3D10Buffer
     interface containing the constant buffer for manual
     manipulation. If the user manually changes the constant
     values in this way, the constant values contained in the
     corresponding CGbuffer (if exists) will be stale.

EXAMPLES
     ID3D10Buffer * myConstantBuffer = cgD3D10GetBufferByIndex(
     myCgProgram, 0 );

ERORS
     CGINVALIDPROGRAMHANDLEROR if Program is not a valid Cg
     program.

HISTORY
     cgD3D10000GetBufferByIndex was introduced in Cg 2.1.

SEE ALSO
     cgCreateBuffer















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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