RetroArch/gfx/common/orbis_defines.h

41 lines
920 B
C
Raw Normal View History

2023-05-31 22:46:34 +02:00
#ifndef ORBIS_DEFINES_H__
#define ORBIS_DEFINES_H__
2018-12-28 01:27:13 +01:00
#ifdef HAVE_EGL
#include <piglet.h>
#include "../common/egl_common.h"
#endif
2019-02-03 15:49:35 -08:00
#define ATTR_ORBISGL_WIDTH 1920
2018-12-28 01:27:13 +01:00
#define ATTR_ORBISGL_HEIGHT 1080
2020-06-20 14:05:20 -07:00
#if defined(HAVE_OOSDK)
#define SIZEOF_SCE_SHDR_CACHE_CONFIG 0x10C
TYPE_BEGIN(struct _SceShdrCacheConfig, SIZEOF_SCE_SHDR_CACHE_CONFIG);
TYPE_FIELD(uint32_t ver, 0x00);
TYPE_FIELD(uint32_t unk1, 0x04);
TYPE_FIELD(uint32_t unk2, 0x08);
TYPE_FIELD(char cache_dir[128], 0x0C);
TYPE_END();
typedef struct _SceShdrCacheConfig SceShdrCacheConfig;
bool scePigletSetShaderCacheConfiguration(const SceShdrCacheConfig *config);
#endif
2018-12-28 01:27:13 +01:00
typedef struct
{
#ifdef HAVE_EGL
egl_ctx_data_t egl;
ScePglConfig pgl_config;
2020-06-20 14:05:20 -07:00
#if defined(HAVE_OOSDK)
SceShdrCacheConfig shdr_cache_config;
#endif
2018-12-28 01:27:13 +01:00
#endif
2018-12-28 11:19:28 +01:00
SceWindow native_window;
2018-12-28 01:27:13 +01:00
bool resize;
unsigned width, height;
float refresh_rate;
} orbis_ctx_data_t;
#endif