]> Chaos Git - corbenik/ctrulib.git/commitdiff
Merge pull request #154 from Subv/tev_buffer_color
authorfincs <fincs.alt1@gmail.com>
Sat, 22 Aug 2015 19:20:37 +0000 (21:20 +0200)
committerfincs <fincs.alt1@gmail.com>
Sat, 22 Aug 2015 19:20:37 +0000 (21:20 +0200)
GPU: Added code to manipulate the combiner buffer.

1  2 
libctru/include/3ds/gpu/gpu.h
libctru/source/gpu/gpu.c

index ca215240e904d1ca2db45d74de639eb158e65858,b58cf8944de58efdf69119394fddd85c35386531..6d97393e8c5649bd2a77698f2b2227b1fcba361d
@@@ -263,9 -263,11 +267,11 @@@ void GPU_SetScissorTest(GPU_SCISSORMOD
  void GPU_DepthMap(float zScale, float zOffset);
  void GPU_SetAlphaTest(bool enable, GPU_TESTFUNC function, u8 ref);
  void GPU_SetDepthTestAndWriteMask(bool enable, GPU_TESTFUNC function, GPU_WRITEMASK writemask); // GPU_WRITEMASK values can be ORed together
 -void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 mask, u8 replace);
 +void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 input_mask, u8 write_mask);
  void GPU_SetStencilOp(GPU_STENCILOP sfail, GPU_STENCILOP dfail, GPU_STENCILOP pass);
  void GPU_SetFaceCulling(GPU_CULLMODE mode);
+ // Only the first four tev stages can write to the combiner buffer, use GPU_TEV_BUFFER_WRITE_CONFIG to build the parameters
+ void GPU_SetCombinerBufferWrite(u8 rgb_config, u8 alpha_config);
  
  // these two can't be used together
  void GPU_SetAlphaBlending(GPU_BLENDEQUATION colorEquation, GPU_BLENDEQUATION alphaEquation, 
Simple merge