Skip to content

gx2: Add GX2GetLastFrame, GX2GetLastFrameGamma documentation - #451

Open
CoolPenguin27 wants to merge 1 commit into
devkitPro:masterfrom
CoolPenguin27:master
Open

gx2: Add GX2GetLastFrame, GX2GetLastFrameGamma documentation#451
CoolPenguin27 wants to merge 1 commit into
devkitPro:masterfrom
CoolPenguin27:master

Conversation

@CoolPenguin27

Copy link
Copy Markdown

I mainly did this to document the surface format, which is GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8.

Comment thread include/gx2/swap.h
* The scan-target to source from.
*
* \param texture
* A pointer to the texture to store the frame. The resulting surface format is #GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A pointer to the texture to store the frame

This makes it sound a bit like only the image in texture is updated. Maybe something like

Suggested change
* A pointer to the texture to store the frame. The resulting surface format is #GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8.
* A pointer to store the texture of the last frame to. The resulting surface format is #GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8.

would make this more clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants