2015-05-24 07:55:12 +03:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 02:08:10 +03:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 06:29:41 +03:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-09 04:37:08 +03:00
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2010-06-09 04:37:08 +03:00
|
|
|
|
2014-02-17 12:18:15 +02:00
|
|
|
#include "Common/CommonTypes.h"
|
2015-10-09 21:50:36 +03:00
|
|
|
|
|
|
|
#include "VideoCommon/RenderBase.h"
|
|
|
|
|
|
|
|
class SWRenderer : public Renderer
|
2014-02-17 06:51:41 +02:00
|
|
|
{
|
2015-10-09 21:50:36 +03:00
|
|
|
public:
|
2017-03-04 08:40:08 +02:00
|
|
|
SWRenderer();
|
2014-03-29 12:05:44 +02:00
|
|
|
|
2017-09-30 09:25:36 +03:00
|
|
|
std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config) override;
|
2017-10-21 17:49:40 +03:00
|
|
|
std::unique_ptr<AbstractStagingTexture>
|
|
|
|
CreateStagingTexture(StagingTextureType type, const TextureConfig& config) override;
|
2017-09-30 09:25:36 +03:00
|
|
|
|
2017-09-08 12:42:56 +03:00
|
|
|
std::unique_ptr<AbstractShader> CreateShaderFromSource(ShaderStage stage, const char* source,
|
|
|
|
size_t length) override;
|
|
|
|
std::unique_ptr<AbstractShader> CreateShaderFromBinary(ShaderStage stage, const void* data,
|
|
|
|
size_t length) override;
|
|
|
|
std::unique_ptr<AbstractPipeline> CreatePipeline(const AbstractPipelineConfig& config) override;
|
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
void RenderText(const std::string& pstr, int left, int top, u32 color) override;
|
|
|
|
u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) override;
|
2017-07-30 22:56:12 +03:00
|
|
|
void PokeEFB(EFBAccessType type, const EfbPokeData* points, size_t num_points) override {}
|
2016-06-24 11:43:46 +03:00
|
|
|
u16 BBoxRead(int index) override;
|
|
|
|
void BBoxWrite(int index, u16 value) override;
|
2015-10-09 21:50:36 +03:00
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
TargetRectangle ConvertEFBRectangle(const EFBRectangle& rc) override;
|
2015-10-09 21:50:36 +03:00
|
|
|
|
2017-05-30 01:02:09 +03:00
|
|
|
void SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ticks, float Gamma) override;
|
2015-10-09 21:50:36 +03:00
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
void ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaEnable, bool zEnable,
|
|
|
|
u32 color, u32 z) override;
|
2015-10-09 21:50:36 +03:00
|
|
|
|
2016-06-24 11:43:46 +03:00
|
|
|
void ReinterpretPixelData(unsigned int convtype) override {}
|
2015-10-09 21:50:36 +03:00
|
|
|
};
|