mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 01:38:29 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
30
src/Cafe/HW/Latte/Core/LatteTextureReadbackInfo.h
Normal file
30
src/Cafe/HW/Latte/Core/LatteTextureReadbackInfo.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "Cafe/HW/Latte/Core/LatteTexture.h"
|
||||
#include "util/highresolutiontimer/HighResolutionTimer.h"
|
||||
|
||||
class LatteTextureReadbackInfo
|
||||
{
|
||||
public:
|
||||
LatteTextureReadbackInfo(LatteTextureView* textureView)
|
||||
: hostTextureCopy(textureView->baseTexture), m_textureView(textureView)
|
||||
{}
|
||||
|
||||
virtual ~LatteTextureReadbackInfo() = default;
|
||||
|
||||
virtual void StartTransfer() = 0;
|
||||
virtual bool IsFinished() = 0;
|
||||
virtual void ForceFinish() {};
|
||||
|
||||
virtual uint8* GetData() = 0;
|
||||
virtual void ReleaseData() {};
|
||||
|
||||
HRTick transferStartTime;
|
||||
HRTick waitStartTime;
|
||||
// texture info
|
||||
LatteTextureDefinition hostTextureCopy{};
|
||||
|
||||
protected:
|
||||
LatteTextureView* m_textureView;
|
||||
uint32 m_image_size = 0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue