GPU/Shader Instruction Set: Difference between revisions
 Update the output attribute section  | 
				No edit summary  | 
				||
| Line 810: | Line 810: | ||
Output registers hold the data to be passed to the later GPU stages and are write-only. Each of the output register is assigned a semantic by setting the corresponding [[GPU_Internal_Registers]]. Output registers o7-o15 are only available in vertex shaders.  | Output registers hold the data to be passed to the later GPU stages and are write-only. Each of the output register is assigned a semantic by setting the corresponding [[GPU_Internal_Registers]]. Output registers o7-o15 are only available in vertex shaders.  | ||
Keep in mind that writing to an output register that   | Keep in mind that writing to an output register's component twice appears that writing twice appears to cause problems (e.g. GPU hangs).  | ||
Temporary registers can be used for intermediate calculations and can be both read and written.  | Temporary registers can be used for intermediate calculations and can be both read and written.  | ||