ShCc::CcBackendCode Class Reference

Inheritance diagram for ShCc::CcBackendCode:

Inheritance graph
[legend]
Collaboration diagram for ShCc::CcBackendCode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CcBackendCode (const SH::ShProgramNodeCPtr &program)
 ~CcBackendCode (void)
bool allocateRegister (const SH::ShVariableNodePtr &var)
 Used by a register allocater to signal that a register should be allocated to var.
void freeRegister (const SH::ShVariableNodePtr &var)
 Used by the register allocator to signal that the register used by var can be used by other registers in future allocateRegister() calls.
void upload (void)
 Upload this shader code to the GPU.
void bind (void)
 Bind this shader code after it has been uploaded.
void unbind (void)
 Unbind this shader.
void update (void)
 Upload any textures and uniform parameters which are out-of-date but required.
void updateUniform (const SH::ShVariableNodePtr &uniform)
 Update the value of a uniform parameter after it has changed.
std::ostream & print (std::ostream &out)
std::ostream & describe_interface (std::ostream &out)
 Prints input and output specification in target-specific format.
std::ostream & describe_bindings (std::ostream &out)
 Prints binding description in target-specific format.

Protected Member Functions

bool generate (void)
bool execute (SH::ShStream &dest)

Friends

class CcBackend

Detailed Description

Definition at line 60 of file Cc.hpp.


Member Function Documentation

bool ShCc::CcBackendCode::allocateRegister const SH::ShVariableNodePtr var  )  [virtual]
 

Used by a register allocater to signal that a register should be allocated to var.

Return true iff the allocation succeeded.

Implements SH::ShBackendCode.

Definition at line 257 of file Cc.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Nov 9 15:36:55 2005 for Sh by  doxygen 1.4.5