mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[idd] rewrite to support DirectX12 copy
This commit is contained in:
30
idd/LGIdd/CFrameBufferResource.h
Normal file
30
idd/LGIdd/CFrameBufferResource.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <Windows.h>
|
||||
#include <wdf.h>
|
||||
#include <wrl.h>
|
||||
#include <d3d12.h>
|
||||
#include <stdint.h>
|
||||
|
||||
class CSwapChainProcessor;
|
||||
|
||||
using namespace Microsoft::WRL;
|
||||
|
||||
class CFrameBufferResource
|
||||
{
|
||||
private:
|
||||
bool m_valid;
|
||||
uint8_t * m_base;
|
||||
size_t m_size;
|
||||
ComPtr<ID3D12Resource> m_res;
|
||||
|
||||
public:
|
||||
bool Init(CSwapChainProcessor * swapChain, uint8_t * base, size_t size);
|
||||
void Reset();
|
||||
|
||||
bool IsValid() { return m_valid; }
|
||||
uint8_t * GetBase() { return m_base; }
|
||||
size_t GetSize() { return m_size; }
|
||||
|
||||
ComPtr<ID3D12Resource> Get() { return m_res; }
|
||||
};
|
Reference in New Issue
Block a user