mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Merge pull request #1582 from Stevoisiak/newImprovedFormatting
More formatting and consistency fixes
This commit is contained in:
commit
aa92797f93
@ -61,7 +61,7 @@ void Shutdown();
|
|||||||
|
|
||||||
void RegisterMMIO(MMIO::Mapping* mmio, u32 base);
|
void RegisterMMIO(MMIO::Mapping* mmio, u32 base);
|
||||||
|
|
||||||
DSPEmulator *GetDSPEmulator();
|
DSPEmulator* GetDSPEmulator();
|
||||||
|
|
||||||
void DoState(PointerWrap &p);
|
void DoState(PointerWrap &p);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
class ROMUCode : public UCodeInterface
|
class ROMUCode : public UCodeInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ROMUCode(DSPHLE *dsphle, u32 crc);
|
ROMUCode(DSPHLE* dsphle, u32 crc);
|
||||||
virtual ~ROMUCode();
|
virtual ~ROMUCode();
|
||||||
u32 GetUpdateMs() override;
|
u32 GetUpdateMs() override;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "Core/HW/DSPHLE/UCodes/UCodes.h"
|
#include "Core/HW/DSPHLE/UCodes/UCodes.h"
|
||||||
#include "Core/HW/DSPHLE/UCodes/Zelda.h"
|
#include "Core/HW/DSPHLE/UCodes/Zelda.h"
|
||||||
|
|
||||||
UCodeInterface* UCodeFactory(u32 crc, DSPHLE *dsphle, bool wii)
|
UCodeInterface* UCodeFactory(u32 crc, DSPHLE* dsphle, bool wii)
|
||||||
{
|
{
|
||||||
switch (crc)
|
switch (crc)
|
||||||
{
|
{
|
||||||
|
@ -19,13 +19,9 @@ class IVolume;
|
|||||||
IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume)
|
IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume)
|
||||||
{
|
{
|
||||||
if (IsVolumeWiiDisc(pVolume) || IsVolumeWadFile(pVolume))
|
if (IsVolumeWiiDisc(pVolume) || IsVolumeWadFile(pVolume))
|
||||||
{
|
|
||||||
return new CBannerLoaderWii(pVolume);
|
return new CBannerLoaderWii(pVolume);
|
||||||
}
|
|
||||||
if (_rFileSystem.IsValid())
|
if (_rFileSystem.IsValid())
|
||||||
{
|
|
||||||
return new CBannerLoaderGC(_rFileSystem, pVolume);
|
return new CBannerLoaderGC(_rFileSystem, pVolume);
|
||||||
}
|
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ private:
|
|||||||
u8 m_TMDView[TMD_VIEW_SIZE];
|
u8 m_TMDView[TMD_VIEW_SIZE];
|
||||||
u8 m_TMDHeader[TMD_HEADER_SIZE];
|
u8 m_TMDHeader[TMD_HEADER_SIZE];
|
||||||
u32 m_TIKSize;
|
u32 m_TIKSize;
|
||||||
u8 *m_TIK;
|
u8* m_TIK;
|
||||||
u8 m_Country;
|
u8 m_Country;
|
||||||
|
|
||||||
std::vector<SNANDContent> m_Content;
|
std::vector<SNANDContent> m_Content;
|
||||||
@ -267,19 +267,13 @@ bool CNANDContentLoader::Initialize(const std::string& _rName)
|
|||||||
rContent.m_pData = nullptr;
|
rContent.m_pData = nullptr;
|
||||||
|
|
||||||
if (rContent.m_Type & 0x8000) // shared app
|
if (rContent.m_Type & 0x8000) // shared app
|
||||||
{
|
|
||||||
rContent.m_Filename = CSharedContent::AccessInstance().GetFilenameFromSHA1(rContent.m_SHA1Hash);
|
rContent.m_Filename = CSharedContent::AccessInstance().GetFilenameFromSHA1(rContent.m_SHA1Hash);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
rContent.m_Filename = StringFromFormat("%s/%08x.app", m_Path.c_str(), rContent.m_ContentID);
|
rContent.m_Filename = StringFromFormat("%s/%08x.app", m_Path.c_str(), rContent.m_ContentID);
|
||||||
}
|
|
||||||
|
|
||||||
// Be graceful about incorrect tmds.
|
// Be graceful about incorrect tmds.
|
||||||
if (File::Exists(rContent.m_Filename))
|
if (File::Exists(rContent.m_Filename))
|
||||||
{
|
|
||||||
rContent.m_Size = (u32) File::GetSize(rContent.m_Filename);
|
rContent.m_Size = (u32) File::GetSize(rContent.m_Filename);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
delete [] pTMD;
|
delete [] pTMD;
|
||||||
@ -484,13 +478,9 @@ u64 CNANDContentManager::Install_WiiWAD(std::string &fileName)
|
|||||||
|
|
||||||
std::string APPFileName;
|
std::string APPFileName;
|
||||||
if (Content.m_Type & 0x8000) //shared
|
if (Content.m_Type & 0x8000) //shared
|
||||||
{
|
|
||||||
APPFileName = CSharedContent::AccessInstance().AddSharedContent(Content.m_SHA1Hash);
|
APPFileName = CSharedContent::AccessInstance().AddSharedContent(Content.m_SHA1Hash);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
APPFileName = StringFromFormat("%s%08x.app", ContentPath.c_str(), Content.m_ContentID);
|
APPFileName = StringFromFormat("%s%08x.app", ContentPath.c_str(), Content.m_ContentID);
|
||||||
}
|
|
||||||
|
|
||||||
if (!File::Exists(APPFileName))
|
if (!File::Exists(APPFileName))
|
||||||
{
|
{
|
||||||
@ -522,7 +512,7 @@ u64 CNANDContentManager::Install_WiiWAD(std::string &fileName)
|
|||||||
return TitleID;
|
return TitleID;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Add_Ticket(u64 TitleID, const u8 *p_tik, u32 tikSize)
|
bool Add_Ticket(u64 TitleID, const u8* p_tik, u32 tikSize)
|
||||||
{
|
{
|
||||||
std::string TicketFileName = Common::GetTicketFileName(TitleID);
|
std::string TicketFileName = Common::GetTicketFileName(TitleID);
|
||||||
File::CreateFullPath(TicketFileName);
|
File::CreateFullPath(TicketFileName);
|
||||||
|
@ -66,9 +66,7 @@ bool CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer) const
|
|||||||
|
|
||||||
// read current block
|
// read current block
|
||||||
if (!m_pReader->Read(m_VolumeOffset + m_dataOffset + Block * 0x8000, 0x8000, m_pBuffer))
|
if (!m_pReader->Read(m_VolumeOffset + m_dataOffset + Block * 0x8000, 0x8000, m_pBuffer))
|
||||||
{
|
|
||||||
return(false);
|
return(false);
|
||||||
}
|
|
||||||
|
|
||||||
if (m_LastDecryptedBlockOffset != Block)
|
if (m_LastDecryptedBlockOffset != Block)
|
||||||
{
|
{
|
||||||
|
@ -98,7 +98,7 @@ namespace ButtonManager
|
|||||||
delete bind.second;
|
delete bind.second;
|
||||||
_inputbinds.clear();
|
_inputbinds.clear();
|
||||||
}
|
}
|
||||||
void AddBind(sBind *bind) { _inputbinds[std::make_pair(bind->_padID, bind->_buttontype)] = bind; }
|
void AddBind(sBind* bind) { _inputbinds[std::make_pair(bind->_padID, bind->_buttontype)] = bind; }
|
||||||
void PressEvent(int button, int action);
|
void PressEvent(int button, int action);
|
||||||
void AxisEvent(int axis, float value);
|
void AxisEvent(int axis, float value);
|
||||||
bool ButtonValue(int padID, ButtonType button);
|
bool ButtonValue(int padID, ButtonType button);
|
||||||
|
@ -113,7 +113,7 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
|||||||
m_Valid = true;
|
m_Valid = true;
|
||||||
|
|
||||||
// Create a cache file only if we have an image.
|
// Create a cache file only if we have an image.
|
||||||
// Wii isos create their images after you have generated the first savegame
|
// Wii ISOs create their images after you have generated the first savegame
|
||||||
if (!m_pImage.empty())
|
if (!m_pImage.empty())
|
||||||
SaveToCache();
|
SaveToCache();
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ bool DolphinApp::Initialize(int& c, wxChar **v)
|
|||||||
return wxApp::Initialize(c, v);
|
return wxApp::Initialize(c, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The `main program' equivalent that creates the main window and return the main frame
|
// The 'main program' equivalent that creates the main window and return the main frame
|
||||||
|
|
||||||
bool DolphinApp::OnInit()
|
bool DolphinApp::OnInit()
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,7 @@ unsigned int GetMaxTextureSize();
|
|||||||
HRESULT SetFullscreenState(bool enable_fullscreen);
|
HRESULT SetFullscreenState(bool enable_fullscreen);
|
||||||
HRESULT GetFullscreenState(bool* fullscreen_state);
|
HRESULT GetFullscreenState(bool* fullscreen_state);
|
||||||
|
|
||||||
// Ihis function will assign a name to the given resource.
|
// This function will assign a name to the given resource.
|
||||||
// The DirectX debug layer will make it easier to identify resources that way,
|
// The DirectX debug layer will make it easier to identify resources that way,
|
||||||
// e.g. when listing up all resources who have unreleased references.
|
// e.g. when listing up all resources who have unreleased references.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -76,11 +76,11 @@ void SetDebugObjectName(T resource, const char* name)
|
|||||||
|
|
||||||
} // namespace D3D
|
} // namespace D3D
|
||||||
|
|
||||||
typedef HRESULT (WINAPI *CREATEDXGIFACTORY)(REFIID, void**);
|
typedef HRESULT (WINAPI* CREATEDXGIFACTORY)(REFIID, void**);
|
||||||
extern CREATEDXGIFACTORY PCreateDXGIFactory;
|
extern CREATEDXGIFACTORY PCreateDXGIFactory;
|
||||||
typedef HRESULT (WINAPI *D3D11CREATEDEVICE)(IDXGIAdapter*, D3D_DRIVER_TYPE, HMODULE, UINT, CONST D3D_FEATURE_LEVEL*, UINT, UINT, ID3D11Device**, D3D_FEATURE_LEVEL*, ID3D11DeviceContext**);
|
typedef HRESULT (WINAPI* D3D11CREATEDEVICE)(IDXGIAdapter*, D3D_DRIVER_TYPE, HMODULE, UINT, CONST D3D_FEATURE_LEVEL*, UINT, UINT, ID3D11Device**, D3D_FEATURE_LEVEL*, ID3D11DeviceContext**);
|
||||||
|
|
||||||
typedef HRESULT (WINAPI *D3DREFLECT)(LPCVOID, SIZE_T, REFIID, void**);
|
typedef HRESULT (WINAPI* D3DREFLECT)(LPCVOID, SIZE_T, REFIID, void**);
|
||||||
extern D3DREFLECT PD3DReflect;
|
extern D3DREFLECT PD3DReflect;
|
||||||
extern pD3DCompile PD3DCompile;
|
extern pD3DCompile PD3DCompile;
|
||||||
|
|
||||||
|
@ -183,9 +183,7 @@ ID3D11BlendState* StateCache::Get(BlendState state)
|
|||||||
auto it = m_blend.find(state.packed);
|
auto it = m_blend.find(state.packed);
|
||||||
|
|
||||||
if (it != m_blend.end())
|
if (it != m_blend.end())
|
||||||
{
|
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
|
||||||
|
|
||||||
D3D11_BLEND_DESC blenddc = CD3D11_BLEND_DESC(CD3D11_DEFAULT());
|
D3D11_BLEND_DESC blenddc = CD3D11_BLEND_DESC(CD3D11_DEFAULT());
|
||||||
|
|
||||||
@ -256,9 +254,7 @@ ID3D11RasterizerState* StateCache::Get(RasterizerState state)
|
|||||||
auto it = m_raster.find(state.packed);
|
auto it = m_raster.find(state.packed);
|
||||||
|
|
||||||
if (it != m_raster.end())
|
if (it != m_raster.end())
|
||||||
{
|
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
|
||||||
|
|
||||||
D3D11_RASTERIZER_DESC rastdc = CD3D11_RASTERIZER_DESC(state.wireframe ? D3D11_FILL_WIREFRAME : D3D11_FILL_SOLID,
|
D3D11_RASTERIZER_DESC rastdc = CD3D11_RASTERIZER_DESC(state.wireframe ? D3D11_FILL_WIREFRAME : D3D11_FILL_SOLID,
|
||||||
state.cull_mode,
|
state.cull_mode,
|
||||||
@ -279,9 +275,7 @@ ID3D11DepthStencilState* StateCache::Get(ZMode state)
|
|||||||
auto it = m_depth.find(state.hex);
|
auto it = m_depth.find(state.hex);
|
||||||
|
|
||||||
if (it != m_depth.end())
|
if (it != m_depth.end())
|
||||||
{
|
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
|
||||||
|
|
||||||
D3D11_DEPTH_STENCIL_DESC depthdc = CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT());
|
D3D11_DEPTH_STENCIL_DESC depthdc = CD3D11_DEPTH_STENCIL_DESC(CD3D11_DEFAULT());
|
||||||
|
|
||||||
|
@ -43,9 +43,12 @@ D3DTexture2D* D3DTexture2D::Create(unsigned int width, unsigned int height, D3D1
|
|||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
D3D11_CPU_ACCESS_FLAG cpuflags;
|
D3D11_CPU_ACCESS_FLAG cpuflags;
|
||||||
if (usage == D3D11_USAGE_STAGING) cpuflags = (D3D11_CPU_ACCESS_FLAG)((int)D3D11_CPU_ACCESS_WRITE|(int)D3D11_CPU_ACCESS_READ);
|
if (usage == D3D11_USAGE_STAGING)
|
||||||
else if (usage == D3D11_USAGE_DYNAMIC) cpuflags = D3D11_CPU_ACCESS_WRITE;
|
cpuflags = (D3D11_CPU_ACCESS_FLAG)((int)D3D11_CPU_ACCESS_WRITE|(int)D3D11_CPU_ACCESS_READ);
|
||||||
else cpuflags = (D3D11_CPU_ACCESS_FLAG)0;
|
else if (usage == D3D11_USAGE_DYNAMIC)
|
||||||
|
cpuflags = D3D11_CPU_ACCESS_WRITE;
|
||||||
|
else
|
||||||
|
cpuflags = (D3D11_CPU_ACCESS_FLAG)0;
|
||||||
D3D11_TEXTURE2D_DESC texdesc = CD3D11_TEXTURE2D_DESC(fmt, width, height, 1, levels, bind, usage, cpuflags);
|
D3D11_TEXTURE2D_DESC texdesc = CD3D11_TEXTURE2D_DESC(fmt, width, height, 1, levels, bind, usage, cpuflags);
|
||||||
hr = D3D::device->CreateTexture2D(&texdesc, nullptr, &pTexture);
|
hr = D3D::device->CreateTexture2D(&texdesc, nullptr, &pTexture);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
@ -90,9 +93,12 @@ D3DTexture2D::D3DTexture2D(ID3D11Texture2D* texptr, D3D11_BIND_FLAG bind,
|
|||||||
D3D11_SHADER_RESOURCE_VIEW_DESC srv_desc = CD3D11_SHADER_RESOURCE_VIEW_DESC(srv_dim, srv_format);
|
D3D11_SHADER_RESOURCE_VIEW_DESC srv_desc = CD3D11_SHADER_RESOURCE_VIEW_DESC(srv_dim, srv_format);
|
||||||
D3D11_DEPTH_STENCIL_VIEW_DESC dsv_desc = CD3D11_DEPTH_STENCIL_VIEW_DESC(dsv_dim, dsv_format);
|
D3D11_DEPTH_STENCIL_VIEW_DESC dsv_desc = CD3D11_DEPTH_STENCIL_VIEW_DESC(dsv_dim, dsv_format);
|
||||||
D3D11_RENDER_TARGET_VIEW_DESC rtv_desc = CD3D11_RENDER_TARGET_VIEW_DESC(rtv_dim, rtv_format);
|
D3D11_RENDER_TARGET_VIEW_DESC rtv_desc = CD3D11_RENDER_TARGET_VIEW_DESC(rtv_dim, rtv_format);
|
||||||
if (bind & D3D11_BIND_SHADER_RESOURCE) D3D::device->CreateShaderResourceView(tex, &srv_desc, &srv);
|
if (bind & D3D11_BIND_SHADER_RESOURCE)
|
||||||
if (bind & D3D11_BIND_RENDER_TARGET) D3D::device->CreateRenderTargetView(tex, &rtv_desc, &rtv);
|
D3D::device->CreateShaderResourceView(tex, &srv_desc, &srv);
|
||||||
if (bind & D3D11_BIND_DEPTH_STENCIL) D3D::device->CreateDepthStencilView(tex, &dsv_desc, &dsv);
|
if (bind & D3D11_BIND_RENDER_TARGET)
|
||||||
|
D3D::device->CreateRenderTargetView(tex, &rtv_desc, &rtv);
|
||||||
|
if (bind & D3D11_BIND_DEPTH_STENCIL)
|
||||||
|
D3D::device->CreateDepthStencilView(tex, &dsv_desc, &dsv);
|
||||||
tex->AddRef();
|
tex->AddRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,21 +72,13 @@ u32 PerfQuery::GetQueryResult(PerfQueryType type)
|
|||||||
u32 result = 0;
|
u32 result = 0;
|
||||||
|
|
||||||
if (type == PQ_ZCOMP_INPUT_ZCOMPLOC || type == PQ_ZCOMP_OUTPUT_ZCOMPLOC)
|
if (type == PQ_ZCOMP_INPUT_ZCOMPLOC || type == PQ_ZCOMP_OUTPUT_ZCOMPLOC)
|
||||||
{
|
|
||||||
result = m_results[PQG_ZCOMP_ZCOMPLOC];
|
result = m_results[PQG_ZCOMP_ZCOMPLOC];
|
||||||
}
|
|
||||||
else if (type == PQ_ZCOMP_INPUT || type == PQ_ZCOMP_OUTPUT)
|
else if (type == PQ_ZCOMP_INPUT || type == PQ_ZCOMP_OUTPUT)
|
||||||
{
|
|
||||||
result = m_results[PQG_ZCOMP];
|
result = m_results[PQG_ZCOMP];
|
||||||
}
|
|
||||||
else if (type == PQ_BLEND_INPUT)
|
else if (type == PQ_BLEND_INPUT)
|
||||||
{
|
|
||||||
result = m_results[PQG_ZCOMP] + m_results[PQG_ZCOMP_ZCOMPLOC];
|
result = m_results[PQG_ZCOMP] + m_results[PQG_ZCOMP_ZCOMPLOC];
|
||||||
}
|
|
||||||
else if (type == PQ_EFB_COPY_CLOCKS)
|
else if (type == PQ_EFB_COPY_CLOCKS)
|
||||||
{
|
|
||||||
result = m_results[PQG_EFB_COPY_CLOCKS];
|
result = m_results[PQG_EFB_COPY_CLOCKS];
|
||||||
}
|
|
||||||
|
|
||||||
return result / 4;
|
return result / 4;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,8 @@ void VertexShaderCache::Init()
|
|||||||
D3D::CompileVertexShader(simple_shader_code, &blob);
|
D3D::CompileVertexShader(simple_shader_code, &blob);
|
||||||
D3D::device->CreateInputLayout(simpleelems, 2, blob->Data(), blob->Size(), &SimpleLayout);
|
D3D::device->CreateInputLayout(simpleelems, 2, blob->Data(), blob->Size(), &SimpleLayout);
|
||||||
SimpleVertexShader = D3D::CreateVertexShaderFromByteCode(blob);
|
SimpleVertexShader = D3D::CreateVertexShaderFromByteCode(blob);
|
||||||
if (SimpleLayout == nullptr || SimpleVertexShader == nullptr) PanicAlert("Failed to create simple vertex shader or input layout at %s %d\n", __FILE__, __LINE__);
|
if (SimpleLayout == nullptr || SimpleVertexShader == nullptr)
|
||||||
|
PanicAlert("Failed to create simple vertex shader or input layout at %s %d\n", __FILE__, __LINE__);
|
||||||
blob->Release();
|
blob->Release();
|
||||||
D3D::SetDebugObjectName((ID3D11DeviceChild*)SimpleVertexShader, "simple vertex shader");
|
D3D::SetDebugObjectName((ID3D11DeviceChild*)SimpleVertexShader, "simple vertex shader");
|
||||||
D3D::SetDebugObjectName((ID3D11DeviceChild*)SimpleLayout, "simple input layout");
|
D3D::SetDebugObjectName((ID3D11DeviceChild*)SimpleLayout, "simple input layout");
|
||||||
@ -133,7 +134,8 @@ void VertexShaderCache::Init()
|
|||||||
D3D::CompileVertexShader(clear_shader_code, &blob);
|
D3D::CompileVertexShader(clear_shader_code, &blob);
|
||||||
D3D::device->CreateInputLayout(clearelems, 2, blob->Data(), blob->Size(), &ClearLayout);
|
D3D::device->CreateInputLayout(clearelems, 2, blob->Data(), blob->Size(), &ClearLayout);
|
||||||
ClearVertexShader = D3D::CreateVertexShaderFromByteCode(blob);
|
ClearVertexShader = D3D::CreateVertexShaderFromByteCode(blob);
|
||||||
if (ClearLayout == nullptr || ClearVertexShader == nullptr) PanicAlert("Failed to create clear vertex shader or input layout at %s %d\n", __FILE__, __LINE__);
|
if (ClearLayout == nullptr || ClearVertexShader == nullptr)
|
||||||
|
PanicAlert("Failed to create clear vertex shader or input layout at %s %d\n", __FILE__, __LINE__);
|
||||||
blob->Release();
|
blob->Release();
|
||||||
D3D::SetDebugObjectName((ID3D11DeviceChild*)ClearVertexShader, "clear vertex shader");
|
D3D::SetDebugObjectName((ID3D11DeviceChild*)ClearVertexShader, "clear vertex shader");
|
||||||
D3D::SetDebugObjectName((ID3D11DeviceChild*)ClearLayout, "clear input layout");
|
D3D::SetDebugObjectName((ID3D11DeviceChild*)ClearLayout, "clear input layout");
|
||||||
|
@ -8,7 +8,7 @@ namespace DX11
|
|||||||
|
|
||||||
class VideoBackend : public VideoBackendHardware
|
class VideoBackend : public VideoBackendHardware
|
||||||
{
|
{
|
||||||
bool Initialize(void *) override;
|
bool Initialize(void*) override;
|
||||||
void Shutdown() override;
|
void Shutdown() override;
|
||||||
|
|
||||||
std::string GetName() const override;
|
std::string GetName() const override;
|
||||||
|
@ -52,7 +52,7 @@ struct SHADER
|
|||||||
glDeleteProgram(glprogid);
|
glDeleteProgram(glprogid);
|
||||||
glprogid = 0;
|
glprogid = 0;
|
||||||
}
|
}
|
||||||
GLuint glprogid; // opengl program id
|
GLuint glprogid; // OpenGL program id
|
||||||
|
|
||||||
std::string strvprog, strpprog;
|
std::string strvprog, strpprog;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ static void CreatePrograms()
|
|||||||
*
|
*
|
||||||
* This shader doesn't really match what the GameCube does internally in the
|
* This shader doesn't really match what the GameCube does internally in the
|
||||||
* copy pipeline.
|
* copy pipeline.
|
||||||
* 1. It uses Opengl's built in filtering when yscaling, someone could work
|
* 1. It uses OpenGL's built in filtering when yscaling, someone could work
|
||||||
* out how the copypipeline does it's filtering and implement it correctly
|
* out how the copypipeline does it's filtering and implement it correctly
|
||||||
* in this shader.
|
* in this shader.
|
||||||
* 2. Deflickering isn't implemented, a futher filtering over 3 lines.
|
* 2. Deflickering isn't implemented, a futher filtering over 3 lines.
|
||||||
|
@ -553,7 +553,7 @@ namespace EfbInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Like CopyToXFB, but we copy directly into the opengl color texture without going via GameCube main memory or doing a yuyv conversion
|
// Like CopyToXFB, but we copy directly into the OpenGL color texture without going via GameCube main memory or doing a yuyv conversion
|
||||||
void BypassXFB(u8* texture, u32 fbWidth, u32 fbHeight, const EFBRectangle& sourceRc, float Gamma)
|
void BypassXFB(u8* texture, u32 fbWidth, u32 fbHeight, const EFBRectangle& sourceRc, float Gamma)
|
||||||
{
|
{
|
||||||
if (fbWidth*fbHeight > MAX_XFB_WIDTH*MAX_XFB_HEIGHT)
|
if (fbWidth*fbHeight > MAX_XFB_WIDTH*MAX_XFB_HEIGHT)
|
||||||
|
@ -57,7 +57,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
static bool IsFlushed;
|
static bool IsFlushed;
|
||||||
|
|
||||||
//virtual void Draw(u32 stride, bool alphapass) = 0;
|
// virtual void Draw(u32 stride, bool alphapass) = 0;
|
||||||
// temp
|
// temp
|
||||||
virtual void vFlush(bool useDstAlpha) = 0;
|
virtual void vFlush(bool useDstAlpha) = 0;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user