Additional GX2 definitions from decaf-emu

This commit is contained in:
shinyquagsire23 2016-08-25 22:01:44 -07:00
parent ad30b83afd
commit e89da7a216
6 changed files with 59 additions and 0 deletions

View File

@ -58,6 +58,9 @@ GX2SetDRCScale(uint32_t x,
GX2TVScanMode
GX2GetSystemTVScanMode();
GX2TVScanMode
GX2GetSystemDRCScanMode();
GX2DrcRenderMode
GX2GetSystemDRCMode();

View File

@ -174,6 +174,19 @@ typedef enum GX2IndexType
GX2_INDEX_TYPE_U32 = 9,
} GX2IndexType;
typedef enum GX2InvalidateMode
{
GX2_INVALIDATE_MODE_ATTRIBUTE_BUFFER = 1 << 0,
GX2_INVALIDATE_MODE_TEXTURE = 1 << 1,
GX2_INVALIDATE_MODE_UNIFORM_BLOCK = 1 << 2,
GX2_INVALIDATE_MODE_SHADER = 1 << 3,
GX2_INVALIDATE_MODE_COLOR_BUFFER = 1 << 4,
GX2_INVALIDATE_MODE_DEPTH_BUFFER = 1 << 5,
GX2_INVALIDATE_MODE_CPU = 1 << 6,
GX2_INVALIDATE_MODE_STREAM_OUT_BUFFER = 1 << 7,
GX2_INVALIDATE_MODE_EXPORT_BUFFER = 1 << 8,
} GX2InvalidateMode;
typedef enum GX2InitAttributes
{
GX2_INIT_END = 0,
@ -493,6 +506,11 @@ typedef enum GX2TVRenderMode
typedef enum GX2TVScanMode
{
GX2_TV_SCAN_MODE_NONE = 0,
GX2_TV_SCAN_MODE_480I = 1,
GX2_TV_SCAN_MODE_480P = 2,
GX2_TV_SCAN_MODE_720P = 3,
GX2_TV_SCAN_MODE_1080I = 5,
GX2_TV_SCAN_MODE_1080P = 6,
} GX2TVScanMode;
#ifdef __cplusplus

24
include/gx2/mem.h Normal file
View File

@ -0,0 +1,24 @@
#pragma once
#include <wut.h>
#include "enum.h"
/**
* \defgroup gx2_mem Memory
* \ingroup gx2
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
void
GX2Invalidate(GX2InvalidateMode mode,
void *buffer,
uint32_t size);
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -18,6 +18,9 @@ GX2Init(uint32_t *attributes);
void
GX2Shutdown();
void
GX2Flush();
#ifdef __cplusplus
}
#endif

View File

@ -112,6 +112,11 @@ GX2CalcDepthBufferHiZInfo(GX2DepthBuffer *depthBuffer,
uint32_t *outSize,
uint32_t *outAlignment);
void
GX2CalcColorBufferAuxInfo(GX2Surface *surface,
uint32_t *outSize,
uint32_t *outAlignment);
void
GX2SetColorBuffer(GX2ColorBuffer *colorBuffer,
GX2RenderTarget target);

View File

@ -23,6 +23,7 @@ EXPORT(GX2SetDRCBuffer);
EXPORT(GX2SetDRCScale);
EXPORT(GX2GetSystemTVScanMode);
EXPORT(GX2GetSystemDRCMode);
EXPORT(GX2GetSystemDRCScanMode);
// gx2/displaylist.h
EXPORT(GX2BeginDisplayListEx);
@ -49,6 +50,9 @@ EXPORT(GX2GetRetiredTimeStamp);
EXPORT(GX2GetLastSubmittedTimeStamp);
EXPORT(GX2WaitTimeStamp);
// gx2/mem.h
EXPORT(GX2Invalidate);
// gx2/registers.h
EXPORT(GX2SetAAMask);
EXPORT(GX2InitAAMaskReg);
@ -129,6 +133,7 @@ EXPORT(GX2InitSamplerXYFilter);
EXPORT(GX2InitSamplerZMFilter);
// gx2/state.h
EXPORT(GX2Flush);
EXPORT(GX2Init);
EXPORT(GX2Shutdown);
@ -161,6 +166,7 @@ EXPORT(GX2GetGeometryShaderGPRs);
EXPORT(GX2GetGeometryShaderStackEntries);
// gx2/surface.h
EXPORT(GX2CalcColorBufferAuxInfo);
EXPORT(GX2CalcSurfaceSizeAndAlignment);
EXPORT(GX2CalcDepthBufferHiZInfo);
EXPORT(GX2SetColorBuffer);