Merge pull request #5647 from lioncash/abstract

AbstractTexture: Minor changes
This commit is contained in:
Markus Wick 2017-06-19 10:19:39 +02:00 committed by GitHub
commit c6417e0e78
7 changed files with 5 additions and 8 deletions

View File

@ -7,7 +7,6 @@
#include "Common/CommonTypes.h"
#include "VideoCommon/AbstractTexture.h"
#include "VideoCommon/VideoCommon.h"
class D3DTexture2D;

View File

@ -7,7 +7,6 @@
#include "Common/CommonTypes.h"
#include "VideoCommon/AbstractTexture.h"
#include "VideoCommon/VideoCommon.h"
namespace Null
{

View File

@ -7,7 +7,6 @@
#include "Common/GL/GLUtil.h"
#include "VideoCommon/AbstractTexture.h"
#include "VideoCommon/VideoCommon.h"
namespace OGL
{

View File

@ -7,7 +7,6 @@
#include "Common/CommonTypes.h"
#include "VideoCommon/AbstractTexture.h"
#include "VideoCommon/VideoCommon.h"
namespace SW
{

View File

@ -8,7 +8,6 @@
#include <vulkan/vulkan.h>
#include "VideoCommon/AbstractTexture.h"
#include "VideoCommon/VideoCommon.h"
namespace Vulkan
{

View File

@ -38,7 +38,7 @@ size_t AbstractTexture::CalculateHostTextureLevelPitch(AbstractTextureFormat for
}
}
const TextureConfig AbstractTexture::GetConfig() const
const TextureConfig& AbstractTexture::GetConfig() const
{
return m_config;
}

View File

@ -4,10 +4,12 @@
#pragma once
#include <cstddef>
#include <string>
#include "Common/CommonTypes.h"
#include "Common/MathUtil.h"
#include "VideoCommon/TextureConfig.h"
#include "VideoCommon/VideoCommon.h"
class AbstractTexture
{
@ -26,7 +28,7 @@ public:
static bool IsCompressedHostTextureFormat(AbstractTextureFormat format);
static size_t CalculateHostTextureLevelPitch(AbstractTextureFormat format, u32 row_length);
const TextureConfig GetConfig() const;
const TextureConfig& GetConfig() const;
protected:
const TextureConfig m_config;