* @brief Gets the number of bytes per pixel for the specified format. * @param format See \ref GSPGPU_FramebufferFormat. * @return Bytes per pixel. */
| 91 | * @return Bytes per pixel. |
| 92 | */ |
| 93 | static inline unsigned gspGetBytesPerPixel(GSPGPU_FramebufferFormat format) |
| 94 | { |
| 95 | switch (format) |
| 96 | { |
| 97 | case GSP_RGBA8_OES: |
| 98 | return 4; |
| 99 | default: |
| 100 | case GSP_BGR8_OES: |
| 101 | return 3; |
| 102 | case GSP_RGB565_OES: |
| 103 | case GSP_RGB5_A1_OES: |
| 104 | case GSP_RGBA4_OES: |
| 105 | return 2; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /// Initializes GSPGPU. |
| 110 | Result gspInit(void); |
no outgoing calls
no test coverage detected