OrbitEngine::Graphics::D3DTexture class

Base classes

class Texture
class D3DMappedResource

Derived classes

class D3DDepthTexture
class D3DRenderTexture

Public static functions

static void Unbind(const unsigned int slot)
static auto TextureFilterToD3D(TextureFilter filter) -> D3D11_FILTER
static auto TextureFormatToD3D(TextureFormat format) -> DXGI_FORMAT
static auto TextureFormatToSRVD3D(TextureFormat format) -> DXGI_FORMAT
static auto TextureDimensionToSRVD3D(TextureDimension dimension) -> D3D_SRV_DIMENSION

Constructors, destructors, conversion operators

D3DTexture(TextureProperties properties, ID3D11Texture2D* texture)
D3DTexture(TextureProperties properties, std::vector<void*> data, unsigned int additionalBindFlags = 0)
~D3DTexture()

Public functions

void bind(unsigned int slot) override
void setData(void* data, unsigned int offset = 0) override
void copy(Texture* source) override
auto getData() -> void* override
auto getD3DTexture() const -> ID3D11Texture2D*