![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Data Structures | |
| struct | SceSharedFbInfo |
| struct | SceSharedFbCreate |
| struct | SceSharedFbRenderInfo |
| Rendering information supplied by PAF during a shared-framebuffer handoff. More... | |
Functions | |
| VITASDK_BUILD_ASSERT_EQ (0x58, SceSharedFbInfo) | |
| SceUID | _sceSharedFbOpen (int index, int sysver) |
| int | sceSharedFbClose (SceUID fb_id) |
| int | sceSharedFbBegin (SceUID fb_id, SceSharedFbInfo *info) |
| int | sceSharedFbEnd (SceUID fb_id) |
| int | sceSharedFbGetInfo (SceUID fb_id, SceSharedFbInfo *info) |
| VITASDK_BUILD_ASSERT_EQ (0x18, SceSharedFbCreate) | |
| VITASDK_BUILD_ASSERT_EQ (0x40, SceSharedFbRenderInfo) | |
| SceUID | sceSharedFbCreate (int index, const SceSharedFbCreate *create_param) |
| Create a shared-framebuffer object. | |
| int | sceSharedFbGetShellRenderPort (void) |
| Get the current shell render port. | |
| int | sceSharedFbUpdateProcess (void) |
| Perform one process handoff after sceSharedFbUpdateProcessBegin. | |
| int | sceSharedFbUpdateProcessBegin (SceUID shared_fb_id, const SceSharedFbRenderInfo *render_info, SceUInt32 *update_count) |
| Begin a shared-framebuffer update. | |
| int | sceSharedFbUpdateProcessEnd (void) |
| Complete a process handoff sequence begun by sceSharedFbUpdateProcessBegin. | |
Exports for User.
Include the header file in your project:
Link the library to the executable:
| struct SceSharedFbInfo |
| struct SceSharedFbCreate |
| struct SceSharedFbRenderInfo |
Rendering information supplied by PAF during a shared-framebuffer handoff.
| Data Fields | ||
|---|---|---|
| void * | frame_buffer_base | Base address of the selected color buffer. |
| SceUInt32 | reserved04 | Set to 0 by PAF on FW 3.60. |
| void * | depth_stencil_buffer | Opaque PAF depth/stencil buffer; NULL disables the depth/stencil surface. |
| SceUInt32 | reserved_0C[4] | Set to 0 by PAF on FW 3.60. |
| SceUInt32 | stride | Color-buffer stride in pixels. |
| SceUInt32 | width | |
| SceUInt32 | height | |
| SceUInt32 | pixel_format | One of SceGxmColorFormat. |
| SceInt32 | buffer_index | One-based render-buffer index used by PAF. |
| SceUInt32 | reserved30[4] | Set to 0 by PAF on FW 3.60. |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x58 | , |
| SceSharedFbInfo | |||
| ) |
| SceUID _sceSharedFbOpen | ( | int | index, |
| int | sysver | ||
| ) |
| int sceSharedFbClose | ( | SceUID | fb_id | ) |
| int sceSharedFbBegin | ( | SceUID | fb_id, |
| SceSharedFbInfo * | info | ||
| ) |
| int sceSharedFbEnd | ( | SceUID | fb_id | ) |
| int sceSharedFbGetInfo | ( | SceUID | fb_id, |
| SceSharedFbInfo * | info | ||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
| SceSharedFbCreate | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x40 | , |
| SceSharedFbRenderInfo | |||
| ) |
| SceUID sceSharedFbCreate | ( | int | index, |
| const SceSharedFbCreate * | create_param | ||
| ) |
Create a shared-framebuffer object.
FW 3.60 supports two objects at a time. PAF creates index 1. The calling process must be a system program.
| [in] | index | Non-negative shared-framebuffer index. |
| [in] | create_param | Required 0x18-byte SceSharedFbCreate structure. |
| int sceSharedFbGetShellRenderPort | ( | void | ) |
Get the current shell render port.
| int sceSharedFbUpdateProcess | ( | void | ) |
Perform one process handoff after sceSharedFbUpdateProcessBegin.
Call this function exactly the number of times specified by the update_count output of sceSharedFbUpdateProcessBegin, then call sceSharedFbUpdateProcessEnd.
| int sceSharedFbUpdateProcessBegin | ( | SceUID | shared_fb_id, |
| const SceSharedFbRenderInfo * | render_info, | ||
| SceUInt32 * | update_count | ||
| ) |
Begin a shared-framebuffer update.
Both pointers must be non-NULL on FW 3.60. The calling process must be a system program and shared_fb_id must identify one of the two created shared framebuffers.
| [in] | shared_fb_id | Shared-framebuffer ID. |
| [in] | render_info | Rendering information copied into the shared framebuffer. |
| [out] | update_count | Receives the 32-bit number of required sceSharedFbUpdateProcess calls. |
| int sceSharedFbUpdateProcessEnd | ( | void | ) |
Complete a process handoff sequence begun by sceSharedFbUpdateProcessBegin.
This function takes no arguments and must be called after the corresponding update-process loop.
| void* SceSharedFbInfo::fb_base |
| int SceSharedFbInfo::fb_size |
| void* SceSharedFbInfo::fb_base2 |
| int SceSharedFbInfo::unk0[6] |
| int SceSharedFbInfo::stride |
| int SceSharedFbInfo::width |
| int SceSharedFbInfo::height |
| int SceSharedFbInfo::unk1 |
| int SceSharedFbInfo::index |
| int SceSharedFbInfo::unk2[4] |
| int SceSharedFbInfo::vsync |
| int SceSharedFbInfo::unk3[3] |
| SceSize SceSharedFbCreate::alloc_mem_size |
Size in bytes of the CDRAM allocation.
| SceUInt32 SceSharedFbCreate::reserved0 |
Stored in the object but otherwise ignored on FW 3.60.
| SceUInt32 SceSharedFbCreate::reserved[4] |
Ignored on FW 3.60.
| void* SceSharedFbRenderInfo::frame_buffer_base |
Base address of the selected color buffer.
| SceUInt32 SceSharedFbRenderInfo::reserved04 |
Set to 0 by PAF on FW 3.60.
| void* SceSharedFbRenderInfo::depth_stencil_buffer |
Opaque PAF depth/stencil buffer; NULL disables the depth/stencil surface.
| SceUInt32 SceSharedFbRenderInfo::reserved_0C[4] |
Set to 0 by PAF on FW 3.60.
| SceUInt32 SceSharedFbRenderInfo::stride |
Color-buffer stride in pixels.
| SceUInt32 SceSharedFbRenderInfo::width |
| SceUInt32 SceSharedFbRenderInfo::height |
| SceUInt32 SceSharedFbRenderInfo::pixel_format |
One of SceGxmColorFormat.
| SceInt32 SceSharedFbRenderInfo::buffer_index |
One-based render-buffer index used by PAF.
| SceUInt32 SceSharedFbRenderInfo::reserved30[4] |
Set to 0 by PAF on FW 3.60.