GPU: Correct some field shadowing.

This commit is contained in:
Unknown W. Brackets 2021-02-15 11:25:46 -08:00
parent a1b9eb3cc5
commit ae474f5f18
7 changed files with 4 additions and 20 deletions

View file

@ -100,9 +100,6 @@ inline int dimHeight(u16 dim) {
// TODO
TextureCacheCommon::TextureCacheCommon(Draw::DrawContext *draw)
: draw_(draw),
texelsScaledThisFrame_(0),
cacheSizeEstimate_(0),
secondCacheSizeEstimate_(0),
clutLastFormat_(0xFFFFFFFF),
clutTotalBytes_(0),
clutMaxBytes_(0),

View file

@ -336,14 +336,14 @@ protected:
bool lowMemoryMode_ = false;
int decimationCounter_;
int texelsScaledThisFrame_;
int timesInvalidatedAllThisFrame_;
int texelsScaledThisFrame_ = 0;
int timesInvalidatedAllThisFrame_ = 0;
TexCache cache_;
u32 cacheSizeEstimate_;
u32 cacheSizeEstimate_ = 0;
TexCache secondCache_;
u32 secondCacheSizeEstimate_;
u32 secondCacheSizeEstimate_ = 0;
std::map<u32, int> videos_;

View file

@ -93,10 +93,6 @@ private:
ID3D11ShaderResourceView *lastBoundTexture;
ID3D11Buffer *depalConstants_;
int decimationCounter_;
int texelsScaledThisFrame_;
int timesInvalidatedAllThisFrame_;
FramebufferManagerD3D11 *framebufferManagerD3D11_;
DepalShaderCacheD3D11 *depalShaderCache_;
ShaderManagerD3D11 *shaderManager_;

View file

@ -86,9 +86,6 @@ private:
LPDIRECT3DTEXTURE9 lastBoundTexture;
float maxAnisotropyLevel;
int texelsScaledThisFrame_;
int timesInvalidatedAllThisFrame_;
FramebufferManagerDX9 *framebufferManagerDX9_;
DepalShaderCacheDX9 *depalShaderCache_;
ShaderManagerDX9 *shaderManager_;

View file

@ -45,7 +45,6 @@
TextureCacheGLES::TextureCacheGLES(Draw::DrawContext *draw)
: TextureCacheCommon(draw) {
timesInvalidatedAllThisFrame_ = 0;
render_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
SetupTextureDecoder();

View file

@ -228,7 +228,6 @@ private:
PrehashMap<VertexArrayInfoVulkan *, nullptr> vai_;
VulkanPushBuffer *vertexCache_;
int decimationCounter_ = 0;
int descDecimationCounter_ = 0;
struct DescriptorSetKey {

View file

@ -128,10 +128,6 @@ private:
TextureScalerVulkan scaler;
int decimationCounter_ = 0;
int texelsScaledThisFrame_ = 0;
int timesInvalidatedAllThisFrame_ = 0;
FramebufferManagerVulkan *framebufferManagerVulkan_;
DepalShaderCacheVulkan *depalShaderCache_;
ShaderManagerVulkan *shaderManagerVulkan_;