Difference between revisions of "GSPGPU:ImportDisplayCaptureInfo"

From 3dbrew
Jump to navigation Jump to search
m (Added return header code)
m (→‎Capture info entry: changed link of "Framebuffer format" to be relevant (info was moved away from "LCD" page a while ago))
Line 38: Line 38:
 
|-
 
|-
 
| 2
 
| 2
| Framebuffer [[LCD|format]], this u16 is stored in the low u16 for LCD register 0x1EF00X70.
+
| Framebuffer [[GPU/External_Registers#Framebuffer_format|format]], this u16 is stored in the low u16 for LCD register 0x1EF00X70.
 
|-
 
|-
 
| 3
 
| 3

Revision as of 02:18, 17 August 2022

Request

Index Word Description
0 Header code [0x00180000]

Response

Index Word Description
0 Header code [0x00180240]
1 Result code
2-9 Output 0x20-byte capture info structure.

Capture info entry

Index Word Description
0 Framebuffer process virtual address, for the main screen this is the 3D left framebuffer
1 For the main screen: 3D right framebuffer process vaddr
2 Framebuffer format, this u16 is stored in the low u16 for LCD register 0x1EF00X70.
3 Value for 0x1EF00X90, controls framebuffer width

Capture info structure

Index Word Description
0-3 Capture info entry for the main screen.
4-7 Capture info entry for the sub screen.

Description

This returns the current framebuffer state. The returned framebuffer addresses are for the currently used(first/second) framebuffers.