mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	GPU: Added the stencil test structure to the Pica Regs struct.
This commit is contained in:
		
							parent
							
								
									155cc80e3b
								
							
						
					
					
						commit
						1248e291f0
					
				
					 7 changed files with 76 additions and 61 deletions
				
			
		|  | @ -176,7 +176,7 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
|     { | ||||
|         // TODO: Store a reference to the registers in the debug context instead of accessing them directly...
 | ||||
| 
 | ||||
|         auto framebuffer = Pica::registers.framebuffer; | ||||
|         const auto& framebuffer = Pica::registers.framebuffer; | ||||
| 
 | ||||
|         framebuffer_address = framebuffer.GetColorBufferPhysicalAddress(); | ||||
|         framebuffer_width = framebuffer.GetWidth(); | ||||
|  | @ -189,7 +189,7 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
| 
 | ||||
|     case Source::DepthBuffer: | ||||
|     { | ||||
|         auto framebuffer = Pica::registers.framebuffer; | ||||
|         const auto& framebuffer = Pica::registers.framebuffer; | ||||
| 
 | ||||
|         framebuffer_address = framebuffer.GetDepthBufferPhysicalAddress(); | ||||
|         framebuffer_width = framebuffer.GetWidth(); | ||||
|  | @ -294,4 +294,4 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f | |||
|         case Format::D16: | ||||
|             return 2; | ||||
|     } | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -20,9 +20,9 @@ class GraphicsFramebufferWidget : public BreakPointObserverDock { | |||
|     using Event = Pica::DebugContext::Event; | ||||
| 
 | ||||
|     enum class Source { | ||||
|         PicaTarget = 0, | ||||
|         DepthBuffer = 1, | ||||
|         Custom = 2, | ||||
|         PicaTarget   = 0, | ||||
|         DepthBuffer  = 1, | ||||
|         Custom       = 2, | ||||
| 
 | ||||
|         // TODO: Add GPU framebuffer sources!
 | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue