11 #include "ShaderTextureGL.h" 12 #include "cores/RetroPlayer/shaders/IShader.h" 13 #include "cores/RetroPlayer/shaders/gl/ShaderTypesGL.h" 14 #include "guilib/TextureGL.h" 15 #include "rendering/gl/GLShader.h" 37 bool CreateVertexBuffer(
unsigned vertCount,
unsigned vertSize)
override;
40 bool Create(
const std::string& shaderSource,
41 const std::string& shaderPath,
42 ShaderParameterMap shaderParameters,
46 unsigned frameCountMod = 0)
override;
48 void SetSizes(
const float2& prevSize,
const float2& nextSize)
override;
49 void PrepareParameters(
CPoint dest[4],
bool isLastPass, uint64_t frameCount)
override;
50 void UpdateMVP()
override;
51 bool CreateInputBuffer()
override;
52 void UpdateInputBuffer(uint64_t frameCount);
53 void GetUniformLocs();
56 void SetShaderParameters();
65 GLfloat frame_direction;
69 std::string m_shaderSource;
72 std::string m_shaderPath;
75 ShaderParameterMap m_shaderParameters;
92 GLuint m_shaderProgram = 0;
95 std::array<std::array<GLfloat, 4>, 4> m_MVP;
97 float m_VertexCoords[4][3];
99 float m_TexCoords[4][2];
100 unsigned int m_indices[2][3];
104 unsigned m_frameCountMod = 0;
106 GLint m_FrameDirectionLoc = -1;
107 GLint m_FrameCountLoc = -1;
108 GLint m_OutputSizeLoc = -1;
109 GLint m_TextureSizeLoc = -1;
110 GLint m_InputSizeLoc = -1;
111 GLint m_MVPMatrixLoc = -1;
120 uniformInputs GetInputData(uint64_t frameCount = 0);
Definition: ShaderGL.h:31
Definition: AudioDecoder.h:18
Definition: RenderContext.h:43
Definition: IShaderTexture.h:15
Definition: ShaderTypes.h:108
Definition: IShaderSampler.h:15