libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
graphic_buffer.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/types.h>
14 
19 typedef struct {
20  uint32_t width;
21  uint32_t height;
22  uint32_t stride;
23  uint32_t format;
24  uint32_t usage;
25  gpu_buffer_t *gpu_buffer;
26 
27  int index;
28  int unknown;
30 
31 #ifdef __cplusplus
32 }
33 #endif
Various system types.
Graphics buffer.
Definition: graphic_buffer.h:19
GPU functions.
int unknown
This is probably related to the offset within the gpu_buffer that this buffer lives in...
Definition: graphic_buffer.h:28
Buffer to be used for various GPU functions.
Definition: gpu.h:18