make more stuff opaque

submit_rewrite
cosmonaut 2020-12-15 18:08:49 -08:00
parent 98ca0d4c57
commit de3b25ab82
1 changed files with 18 additions and 32 deletions

View File

@ -56,7 +56,24 @@ extern "C" {
typedef struct REFRESH_Texture REFRESH_Texture;
typedef struct REFRESH_Buffer REFRESH_Buffer;
typedef struct REFRESH_RenderBuffer REFRESH_RenderBuffer;
typedef struct REFRESH_ColorTarget REFRESH_ColorTarget;
typedef struct REFRESH_DepthTarget REFRESH_DepthTarget;
typedef struct REFRESH_Framebuffer REFRESH_Framebuffer;
typedef struct REFRESH_RenderPass REFRESH_RenderPass;
typedef struct REFRESH_Pipeline REFRESH_Pipeline;
typedef enum REFRESH_LoadOp
{
REFRESH_LOADOP_LOAD,
REFRESH_LOADOP_CLEAR,
REFRESH_LOADOP_DONT_CARE
} REFRESH_LoadOp;
typedef enum REFRESH_StoreOp
{
REFRESH_STOREOP_STORE,
REFRESH_STOREOP_DONT_CARE
} REFRESH_StoreOp;
typedef enum REFRESH_ClearOptions
{
@ -141,37 +158,6 @@ typedef struct REFRESH_VertexBufferBinding
int32_t instanceFrequency;
} REFRESH_VertexBufferBinding;
typedef struct REFRESH_RenderTargetBinding
{
#define REFRESH_RENDERTARGET_TYPE_2D 0
#define REFRESH_RENDERTARGET_TYPE_3D 1
#define REFRESH_RENDERTARGET_TYPE_CUBE 2
uint8_t type;
REFRESHNAMELESS union
{
struct
{
uint32_t width;
uint32_t height;
} twod;
struct
{
uint32_t width;
uint32_t height;
uint32_t layer;
} threed;
struct
{
uint32_t size;
REFRESH_CubeMapFace face;
} cube;
};
uint32_t levelCount;
uint32_t multiSampleCount;
REFRESH_RenderBuffer *renderBuffer;
REFRESH_Texture *texture;
} REFRESH_RenderTargetBinding;
/* Version API */
#define REFRESH_ABI_VERSION 0