]> Chaos Git - corbenik/ctrulib.git/commit
GPU: Added code to manipulate the combiner buffer.
authorSubv <subv2112@gmail.com>
Sat, 22 Aug 2015 15:53:52 +0000 (10:53 -0500)
committerSubv <subv2112@gmail.com>
Sat, 22 Aug 2015 16:28:30 +0000 (11:28 -0500)
commit1738893d055ef0cf16c82d9fa9a4df54903af7b6
tree5bcdf3e89bef4910c2ada9b9bc2c2e43d2999ff6
parentc49d5f49c2ac9818aa3ba66a096de3b36c11d3fd
GPU: Added code to manipulate the combiner buffer.

You can set an initial color value with GPUREG_TEXENV_BUFFER_COLOR, then use GPU_SetCombinerBufferWrite with GPU_TEV_BUFFER_WRITE_CONFIG to allow/disallow the TEV stages to write their color outputs to the buffer.

You can retrieve the previous buffer color using GPU_PREVIOUS_BUFFER as color source in the TEV config.
libctru/include/3ds/gpu/gpu.h
libctru/include/3ds/gpu/registers.h
libctru/source/gpu/gpu.c