mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Rename gfx_fbo_rect to video_fbo_rect
This commit is contained in:
parent
0e08dbe931
commit
2ebb92834c
@ -196,7 +196,7 @@ typedef struct gl
|
|||||||
/* Render-to-texture, multipass shaders. */
|
/* Render-to-texture, multipass shaders. */
|
||||||
GLuint fbo[GFX_MAX_SHADERS];
|
GLuint fbo[GFX_MAX_SHADERS];
|
||||||
GLuint fbo_texture[GFX_MAX_SHADERS];
|
GLuint fbo_texture[GFX_MAX_SHADERS];
|
||||||
struct gfx_fbo_rect fbo_rect[GFX_MAX_SHADERS];
|
struct video_fbo_rect fbo_rect[GFX_MAX_SHADERS];
|
||||||
struct gfx_fbo_scale fbo_scale[GFX_MAX_SHADERS];
|
struct gfx_fbo_scale fbo_scale[GFX_MAX_SHADERS];
|
||||||
int fbo_pass;
|
int fbo_pass;
|
||||||
bool fbo_inited;
|
bool fbo_inited;
|
||||||
|
@ -364,8 +364,8 @@ static void gl_compute_fbo_geometry(gl_t *gl,
|
|||||||
/* Calculate viewports for FBOs. */
|
/* Calculate viewports for FBOs. */
|
||||||
for (i = 0; i < gl->fbo_pass; i++)
|
for (i = 0; i < gl->fbo_pass; i++)
|
||||||
{
|
{
|
||||||
struct gfx_fbo_rect *fbo_rect = &gl->fbo_rect[i];
|
struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i];
|
||||||
struct gfx_fbo_scale *fbo_scale = &gl->fbo_scale[i];
|
struct gfx_fbo_scale *fbo_scale = &gl->fbo_scale[i];
|
||||||
|
|
||||||
switch (gl->fbo_scale[i].type_x)
|
switch (gl->fbo_scale[i].type_x)
|
||||||
{
|
{
|
||||||
@ -1025,7 +1025,7 @@ static INLINE void gl_start_frame_fbo(gl_t *gl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool gl_recreate_fbo(
|
static bool gl_recreate_fbo(
|
||||||
struct gfx_fbo_rect *fbo_rect,
|
struct video_fbo_rect *fbo_rect,
|
||||||
GLuint fbo,
|
GLuint fbo,
|
||||||
GLuint texture
|
GLuint texture
|
||||||
)
|
)
|
||||||
@ -1058,7 +1058,7 @@ static void gl_check_fbo_dimension(gl_t *gl, unsigned i,
|
|||||||
{
|
{
|
||||||
unsigned img_width, img_height, max, pow2_size;
|
unsigned img_width, img_height, max, pow2_size;
|
||||||
bool check_dimensions = false;
|
bool check_dimensions = false;
|
||||||
struct gfx_fbo_rect *fbo_rect = &gl->fbo_rect[i];
|
struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i];
|
||||||
|
|
||||||
if (!fbo_rect)
|
if (!fbo_rect)
|
||||||
return;
|
return;
|
||||||
@ -1126,7 +1126,7 @@ static void gl_frame_fbo(gl_t *gl, uint64_t frame_count,
|
|||||||
video_shader_ctx_params_t params;
|
video_shader_ctx_params_t params;
|
||||||
video_shader_ctx_info_t shader_info;
|
video_shader_ctx_info_t shader_info;
|
||||||
unsigned width, height;
|
unsigned width, height;
|
||||||
const struct gfx_fbo_rect *prev_rect;
|
const struct video_fbo_rect *prev_rect;
|
||||||
struct gfx_tex_info *fbo_info;
|
struct gfx_tex_info *fbo_info;
|
||||||
struct gfx_tex_info fbo_tex_info[GFX_MAX_SHADERS];
|
struct gfx_tex_info fbo_tex_info[GFX_MAX_SHADERS];
|
||||||
int i;
|
int i;
|
||||||
@ -1146,7 +1146,7 @@ static void gl_frame_fbo(gl_t *gl, uint64_t frame_count,
|
|||||||
video_shader_ctx_mvp_t mvp;
|
video_shader_ctx_mvp_t mvp;
|
||||||
video_shader_ctx_coords_t coords;
|
video_shader_ctx_coords_t coords;
|
||||||
video_shader_ctx_params_t params;
|
video_shader_ctx_params_t params;
|
||||||
const struct gfx_fbo_rect *rect = &gl->fbo_rect[i];
|
const struct video_fbo_rect *rect = &gl->fbo_rect[i];
|
||||||
|
|
||||||
prev_rect = &gl->fbo_rect[i - 1];
|
prev_rect = &gl->fbo_rect[i - 1];
|
||||||
fbo_info = &fbo_tex_info[i - 1];
|
fbo_info = &fbo_tex_info[i - 1];
|
||||||
@ -1884,7 +1884,7 @@ static bool gl_frame(void *data, const void *frame,
|
|||||||
#ifdef HAVE_FBO
|
#ifdef HAVE_FBO
|
||||||
if (gl->fbo_feedback_enable)
|
if (gl->fbo_feedback_enable)
|
||||||
{
|
{
|
||||||
const struct gfx_fbo_rect *rect = &gl->fbo_rect[gl->fbo_feedback_pass];
|
const struct video_fbo_rect *rect = &gl->fbo_rect[gl->fbo_feedback_pass];
|
||||||
GLfloat xamt = (GLfloat)rect->img_width / rect->width;
|
GLfloat xamt = (GLfloat)rect->img_width / rect->width;
|
||||||
GLfloat yamt = (GLfloat)rect->img_height / rect->height;
|
GLfloat yamt = (GLfloat)rect->img_height / rect->height;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct gfx_fbo_rect
|
struct video_fbo_rect
|
||||||
{
|
{
|
||||||
unsigned img_width;
|
unsigned img_width;
|
||||||
unsigned img_height;
|
unsigned img_height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user