

Public Member Functions | |
| BackendCode (SH::ShPointer< Backend > backend, const SH::ShProgram &shader, const std::string &target) | |
| virtual | ~BackendCode () |
| virtual bool | allocateRegister (const SH::ShVariableNodePtr &var) |
| Used by a register allocater to signal that a register should be allocated to var. | |
| virtual 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. | |
| virtual void | upload () |
| Upload this shader code to the GPU. | |
| virtual void | bind () |
| Bind this shader code after it has been uploaded. | |
| virtual void | updateUniform (const SH::ShVariableNodePtr &uniform) |
| Update the value of a uniform parameter after it has changed. | |
| void | generate () |
| Actually generate the code, and do register allocation. | |
| std::ostream & | print (std::ostream &out) |
| int | label (const SH::ShBasicBlockPtr &block) |
| void | addBasicBlock (const SH::ShBasicBlockPtr &block) |
| void | allocRegs () |
| const std::string & | target () const |
Definition at line 80 of file ShSmBackend.hpp.
|
|
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 90 of file ShSmBackend.cpp. |
1.4.3-20050530