light/Engine/src/Platform/GraphicsAPI/DirectX/dxSharedContext.h

29 lines
844 B
C
Raw Normal View History

2021-06-02 09:07:45 +04:30
#pragma once
#include "Base.h"
#include "Graphics/SharedContext.h"
2021-06-02 09:07:45 +04:30
#include <d3d11.h>
#include <wrl.h>
namespace Light {
// #todo:
class dxSharedContext : public SharedContext
2021-06-02 09:07:45 +04:30
{
public:
dxSharedContext(Microsoft::WRL::ComPtr<ID3D11Device> _device,
Microsoft::WRL::ComPtr<ID3D11DeviceContext> _deviceContext,
Microsoft::WRL::ComPtr<IDXGISwapChain> _swapChain,
Microsoft::WRL::ComPtr<ID3D11RenderTargetView> _renderTargetView)
: device(_device), deviceContext(_deviceContext), swapChain(_swapChain), renderTargetView(_renderTargetView)
{
}
Microsoft::WRL::ComPtr<ID3D11Device> device;
2021-06-02 09:07:45 +04:30
Microsoft::WRL::ComPtr<ID3D11DeviceContext> deviceContext;
Microsoft::WRL::ComPtr<IDXGISwapChain> swapChain;
Microsoft::WRL::ComPtr<ID3D11RenderTargetView> renderTargetView;
};
}