2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "D3DResource.h"
14 /************************************************************************/
16 /************************************************************************/
17 class CDXTexture
: public CTexture
20 CDXTexture(unsigned int width
= 0, unsigned int height
= 0, XB_FMT format
= XB_FMT_UNKNOWN
);
21 virtual ~CDXTexture();
23 void CreateTextureObject();
24 void DestroyTextureObject();
25 virtual void LoadToGPU();
26 void BindToUnit(unsigned int unit
);
28 ID3D11Texture2D
* GetTextureObject()
30 return m_texture
.Get();
33 ID3D11ShaderResourceView
* GetShaderResource()
35 return m_texture
.GetShaderResource();
39 CD3DTexture m_texture
;
40 DXGI_FORMAT
GetFormat();