wut  v1.7.0
Wii U Toolchain
buffer.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "resource.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct GX2RBuffer GX2RBuffer;
16 
17 struct GX2RBuffer
18 {
20  uint32_t elemSize;
21  uint32_t elemCount;
22  void *buffer;
23 };
24 WUT_CHECK_SIZE(GX2RBuffer, 0x10);
25 WUT_CHECK_OFFSET(GX2RBuffer, 0x00, flags);
26 WUT_CHECK_OFFSET(GX2RBuffer, 0x04, elemSize);
27 WUT_CHECK_OFFSET(GX2RBuffer, 0x08, elemCount);
28 WUT_CHECK_OFFSET(GX2RBuffer, 0x0C, buffer);
29 
30 BOOL
32 
33 BOOL
35 
36 BOOL
38  void *memory,
39  uint32_t size);
40 
41 void
43  GX2RResourceFlags flags);
44 
45 uint32_t
47 
48 uint32_t
50 
51 void
53  GX2RResourceFlags flags);
54 
55 void *
57  GX2RResourceFlags flags);
58 
59 void
61  GX2RResourceFlags flags);
62 
63 void
65  uint32_t location,
66  uint32_t offset);
67 
68 void
70  uint32_t location,
71  uint32_t offset);
72 
73 void
75  uint32_t location,
76  uint32_t offset);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
GX2RResourceFlags flags
Definition: buffer.h:19
void * buffer
Definition: buffer.h:22
uint32_t elemSize
Definition: buffer.h:20
uint32_t elemCount
Definition: buffer.h:21
void GX2RSetVertexUniformBlock(GX2RBuffer *buffer, uint32_t location, uint32_t offset)
void GX2RSetPixelUniformBlock(GX2RBuffer *buffer, uint32_t location, uint32_t offset)
void GX2RInvalidateBuffer(GX2RBuffer *buffer, GX2RResourceFlags flags)
uint32_t GX2RGetBufferAlignment(GX2RResourceFlags flags)
void * GX2RLockBufferEx(GX2RBuffer *buffer, GX2RResourceFlags flags)
void GX2RDestroyBufferEx(GX2RBuffer *buffer, GX2RResourceFlags flags)
void GX2RSetGeometryUniformBlock(GX2RBuffer *buffer, uint32_t location, uint32_t offset)
BOOL GX2RCreateBufferUserMemory(GX2RBuffer *buffer, void *memory, uint32_t size)
BOOL GX2RBufferExists(GX2RBuffer *buffer)
void GX2RUnlockBufferEx(GX2RBuffer *buffer, GX2RResourceFlags flags)
BOOL GX2RCreateBuffer(GX2RBuffer *buffer)
uint32_t GX2RGetBufferAllocationSize(GX2RBuffer *buffer)
GX2RResourceFlags
Definition: resource.h:15
int32_t BOOL
Definition: wut_types.h:7