Skip to content

Commit

Permalink
Remove unused m_textureSize struct
Browse files Browse the repository at this point in the history
  • Loading branch information
KOPRajs committed Apr 20, 2024
1 parent 1022768 commit 8c0dd71
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions xbmc/cores/RetroPlayer/shaders/gl/ShaderGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ class CShaderGL : public IShader
// Resolution of the viewport/window
float2 m_viewportSize;

// Resolution of the texture that holds the input
//float2 m_textureSize;

GLuint m_shaderProgram = 0;

// Projection matrix
Expand Down
4 changes: 0 additions & 4 deletions xbmc/cores/RetroPlayer/shaders/gl/ShaderPresetGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ CShaderPresetGL::CShaderPresetGL(RETRO::CRenderContext& context,
unsigned int videoHeight)
: m_context(context), m_videoSize(videoWidth, videoHeight)
{
m_textureSize = CShaderUtils::GetOptimalTextureSize(m_videoSize);

CRect viewPort;
m_context.GetViewPort(viewPort);
m_outputSize = {viewPort.Width(), viewPort.Height()};
Expand Down Expand Up @@ -206,7 +204,6 @@ void CShaderPresetGL::SetVideoSize(const unsigned videoWidth, const unsigned vid
{
if (videoWidth != m_videoSize.x || videoHeight != m_videoSize.y) {
m_videoSize = {videoWidth, videoHeight};
m_textureSize = CShaderUtils::GetOptimalTextureSize(m_videoSize);
m_bPresetNeedsUpdate = true;
}
}
Expand Down Expand Up @@ -337,7 +334,6 @@ bool CShaderPresetGL::CreateShaderTextures()
bool CShaderPresetGL::CreateShaders()
{
auto numPasses = m_passes.size();
m_textureSize = CShaderUtils::GetOptimalTextureSize(m_videoSize);

ShaderLutVec passLUTsGL;
for (unsigned shaderIdx = 0; shaderIdx < numPasses; ++shaderIdx)
Expand Down
4 changes: 0 additions & 4 deletions xbmc/cores/RetroPlayer/shaders/gl/ShaderPresetGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ class CShaderPresetGL : public IShaderPreset
// Size of the viewport
float2 m_outputSize;

// The size of the input texture itself
// Power-of-two sized.
float2 m_textureSize;

// Size of the actual source video data (ie. 160x144 for the Game Boy)
float2 m_videoSize;

Expand Down
3 changes: 0 additions & 3 deletions xbmc/cores/RetroPlayer/shaders/windows/ShaderDX.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ class CShaderDX : public CWinShader, public IShader
// Resolution of the viewport/window
float2 m_viewportSize;

// Resolution of the texture that holds the input
// float2 m_textureSize;

// Holds the data bount to the input cbuffer (cbInput here)
ID3D11Buffer* m_pInputBuffer = nullptr;

Expand Down
6 changes: 0 additions & 6 deletions xbmc/cores/RetroPlayer/shaders/windows/ShaderPresetDX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ CShaderPresetDX::CShaderPresetDX(RETRO::CRenderContext& context,
unsigned videoHeight)
: m_context(context), m_videoSize(videoWidth, videoHeight)
{
m_textureSize = CShaderUtils::GetOptimalTextureSize(m_videoSize);

CRect viewPort;
m_context.GetViewPort(viewPort);
m_outputSize = {viewPort.Width(), viewPort.Height()};
Expand Down Expand Up @@ -319,9 +317,6 @@ bool CShaderPresetDX::CreateShaderTextures()
bool CShaderPresetDX::CreateShaders()
{
auto numPasses = m_passes.size();
// todo: replace with per-shader texture size
// todo: actually use this
m_textureSize = CShaderUtils::GetOptimalTextureSize(m_videoSize);

// todo: is this pass specific?
ShaderLutVec passLUTsDX;
Expand Down Expand Up @@ -482,7 +477,6 @@ void CShaderPresetDX::SetVideoSize(const unsigned videoWidth, const unsigned vid
{
if (videoWidth != m_videoSize.x || videoHeight != m_videoSize.y) {
m_videoSize = {videoWidth, videoHeight};
m_textureSize = CShaderUtils::GetOptimalTextureSize(m_videoSize);
m_bPresetNeedsUpdate = true;
}
}
Expand Down
4 changes: 0 additions & 4 deletions xbmc/cores/RetroPlayer/shaders/windows/ShaderPresetDX.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ class CShaderPresetDX : public IShaderPreset
// Size of the viewport
float2 m_outputSize;

// The size of the input texture itself
// Power-of-two sized.
float2 m_textureSize;

// Size of the actual source video data (ie. 160x144 for the Game Boy)
float2 m_videoSize;

Expand Down

0 comments on commit 8c0dd71

Please sign in to comment.