PSXDEV snippets : Find the value of a pixel in the PSX VRam
Kuumba╹◡╹ : well um , I guess I should try explaining it a little different . lets say you wanted to find the data for 15bpp pixel @ Xcord 256 , Y cord 0 . where would to be in the GPU's memory ? :slight_smile:
Nic : since you have 2 bytes per pixel, you can find any pixel in the framebuffer using the formula
(x + y * 1024) * 2
Source
https://discord.com/channels/642647820683444236/663664210525290507/844061387265277962