mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 13:05:45 -04:00
GPU/HW: Support OpenGL ES
This commit is contained in:
@ -1,23 +1,15 @@
|
||||
#pragma once
|
||||
#include "gpu_hw.h"
|
||||
#include "host_display.h"
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
class GPU_HW_ShaderGen
|
||||
{
|
||||
public:
|
||||
enum class API
|
||||
{
|
||||
OpenGL,
|
||||
D3D11
|
||||
};
|
||||
|
||||
public:
|
||||
GPU_HW_ShaderGen(API backend, u32 resolution_scale, bool true_color);
|
||||
GPU_HW_ShaderGen(HostDisplay::RenderAPI render_api, u32 resolution_scale, bool true_color);
|
||||
~GPU_HW_ShaderGen();
|
||||
|
||||
void Init(API backend, u32 resolution_scale, bool true_color);
|
||||
|
||||
std::string GenerateBatchVertexShader(bool textured);
|
||||
std::string GenerateBatchFragmentShader(GPU_HW::BatchRenderMode transparency, GPU::TextureMode texture_mode,
|
||||
bool dithering);
|
||||
@ -28,10 +20,11 @@ public:
|
||||
std::string GenerateDisplayFragmentShader(bool depth_24bit, bool interlaced);
|
||||
std::string GenerateVRAMWriteFragmentShader();
|
||||
|
||||
API m_backend;
|
||||
HostDisplay::RenderAPI m_render_api;
|
||||
u32 m_resolution_scale;
|
||||
bool m_true_color;
|
||||
bool m_glsl;
|
||||
bool m_glsl_es;
|
||||
|
||||
private:
|
||||
void WriteHeader(std::stringstream& ss);
|
||||
|
Reference in New Issue
Block a user