Ocular Engine
|
#include <D3D11Texture.hpp>
Public Member Functions | |
D3D11Texture (ID3D11Device *device) | |
ID3D11Texture2D * | getD3DTexture2D () |
ID3D11ShaderResourceView * | getD3DShaderResource () |
Protected Member Functions | |
virtual bool | createD3DTexture2D (TextureDescriptor const &descriptor) |
virtual bool | createD3DShaderResource (TextureDescriptor const &descriptor) |
void | refresh (std::vector< Core::Color > &pixels, Graphics::TextureDescriptor const &descriptor) |
Protected Attributes | |
ID3D11Device * | m_D3DDevice |
ID3D11Texture2D * | m_D3DTexture |
ID3D11ShaderResourceView * | m_D3DShaderResourceView |
DXGI_FORMAT | m_D3DFormat |
Collection of common objects between all D3D11 texture classes.
|
protected |
Performs a GPU to CPU download of the texture data. Texture data is retrieved from m_D3DTexture and stored in pixels.