mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 19:42:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
38
src/gx/Buffer.hpp
Normal file
38
src/gx/Buffer.hpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef GX_BUFFER_HPP
|
||||
#define GX_BUFFER_HPP
|
||||
|
||||
#include "gx/buffer/CGxBuf.hpp"
|
||||
#include "gx/buffer/CGxPool.hpp"
|
||||
#include "gx/buffer/Types.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
class CGxBuf;
|
||||
class CGxPool;
|
||||
|
||||
struct VertexBufDesc {
|
||||
CGxVertexAttrib* attribs;
|
||||
uint32_t attribCount;
|
||||
uint32_t size;
|
||||
uint32_t mask;
|
||||
};
|
||||
|
||||
namespace Buffer {
|
||||
extern VertexBufDesc s_vertexBufDesc[GxVertexBufferFormats_Last];
|
||||
extern int32_t s_vertexBufOffset[GxVertexBufferFormats_Last][GxVAs_Last];
|
||||
}
|
||||
|
||||
uint32_t GxVertexAttribOffset(EGxVertexBufferFormat, EGxVertexAttrib);
|
||||
|
||||
CGxBuf* GxBufCreate(CGxPool*, uint32_t, uint32_t, uint32_t);
|
||||
|
||||
char* GxBufLock(CGxBuf* buf);
|
||||
|
||||
void GxBufUnlock(CGxBuf*, uint32_t);
|
||||
|
||||
CGxPool* GxPoolCreate(EGxPoolTarget, EGxPoolUsage, uint32_t, EGxPoolHintBits, char*);
|
||||
|
||||
void GxPrimIndexPtr(CGxBuf*);
|
||||
|
||||
void GxPrimVertexPtr(CGxBuf*, EGxVertexBufferFormat);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue