GPU/Shader Instruction Set: Difference between revisions
No edit summary |
mNo 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 | Keep in mind that writing to the same output register/component more than once appears 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. |