2021-06-02 09:07:45 +04:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Base.h"
|
2021-06-19 15:12:42 +04:30
|
|
|
#include "Graphics/SharedContext.h"
|
2021-06-02 09:07:45 +04:30
|
|
|
|
|
|
|
#include <d3d11.h>
|
|
|
|
#include <wrl.h>
|
|
|
|
|
|
|
|
namespace Light {
|
|
|
|
|
2021-06-19 15:12:42 +04:30
|
|
|
// #todo:
|
|
|
|
class dxSharedContext : public SharedContext
|
2021-06-02 09:07:45 +04:30
|
|
|
{
|
2021-06-19 15:12:42 +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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|