mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
36 lines
816 B
C++
36 lines
816 B
C++
#pragma once
|
|
|
|
#include "util/types.hpp"
|
|
|
|
#include "../glutils/fbo.h"
|
|
#include "../glutils/image.h"
|
|
#include "../glutils/state_tracker.hpp"
|
|
|
|
namespace gl
|
|
{
|
|
namespace upscaling_flags_
|
|
{
|
|
enum upscaling_flags
|
|
{
|
|
UPSCALE_DEFAULT_VIEW = (1 << 0),
|
|
UPSCALE_LEFT_VIEW = (1 << 0),
|
|
UPSCALE_RIGHT_VIEW = (1 << 1),
|
|
UPSCALE_AND_COMMIT = (1 << 2)
|
|
};
|
|
}
|
|
|
|
using namespace upscaling_flags_;
|
|
|
|
struct upscaler
|
|
{
|
|
virtual ~upscaler() {}
|
|
|
|
virtual gl::texture* scale_output(
|
|
gl::command_context& cmd, // State
|
|
gl::texture* src, // Source input
|
|
const areai& src_region, // Scaling request information
|
|
const areai& dst_region, // Ditto
|
|
gl::flags32_t mode // Mode
|
|
) = 0;
|
|
};
|
|
}
|