MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / DebugBlender

Function DebugBlender

Source/SysGL/HLEGraphics/RendererGL.cpp:711–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709static const char * const kBlendA2[] = { "1-A", "AMem", "1", "?" };
710
711static inline void DebugBlender(u32 cycle_type, u32 blender, u32 alpha_cvg_sel, u32 cvg_x_alpha)
712{
713 static u32 last_blender = 0;
714
715 if(last_blender != blender)
716 {
717 printf( "********************************\n\n" );
718 printf( "Unknown Blender. alpha_cvg_sel: %d cvg_x_alpha: %d\n",
719 alpha_cvg_sel, cvg_x_alpha );
720 printf( "0x%04x: // %s * %s + %s * %s",
721 blender,
722 kBlendCl[(blender>>14) & 0x3],
723 kBlendA1[(blender>>10) & 0x3],
724 kBlendCl[(blender>> 6) & 0x3],
725 kBlendA2[(blender>> 2) & 0x3]);
726
727 if (cycle_type == CYCLE_2CYCLE)
728 {
729 printf( " | %s * %s + %s * %s",
730 kBlendCl[(blender>>12) & 0x3],
731 kBlendA1[(blender>> 8) & 0x3],
732 kBlendCl[(blender>> 4) & 0x3],
733 kBlendA2[(blender ) & 0x3]);
734 }
735 printf( "\n********************************\n\n" );
736 last_blender = blender;
737 }
738}
739#endif
740
741static void InitBlenderMode()

Callers 1

InitBlenderModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected