CD3D11_TEXTURE1D_DESC structure (d3d11.h)

Represents a 1D texture and provides convenience methods for creating 1D textures.

Syntax

struct CD3D11_TEXTURE1D_DESC : D3D11_TEXTURE1D_DESC {
  void CD3D11_TEXTURE1D_DESC();
  void CD3D11_TEXTURE1D_DESC(
    const D3D11_TEXTURE1D_DESC & o
  );
  void CD3D11_TEXTURE1D_DESC(
    DXGI_FORMAT format,
    UINT        width,
    UINT        arraySize,
    UINT        mipLevels,
    UINT        bindFlags,
    D3D11_USAGE usage,
    UINT        cpuaccessFlags,
    UINT        miscFlags
  );
  void ~CD3D11_TEXTURE1D_DESC();
};

Inheritance

The CD3D11_TEXTURE1D_DESC structure implements D3D11_TEXTURE1D_DESC.

Members

void CD3D11_TEXTURE1D_DESC()

Instantiates a new instance of an uninitialized CD3D11_TEXTURE1D_DESC structure.

void CD3D11_TEXTURE1D_DESC( const D3D11_TEXTURE1D_DESC & o)

Instantiates a new instance of a CD3D11_TEXTURE1D_DESC structure that is initialized with a D3D11_TEXTURE1D_DESC structure.

void CD3D11_TEXTURE1D_DESC( DXGI_FORMAT format, UINT width, UINT arraySize, UINT mipLevels, UINT bindFlags, D3D11_USAGE usage, UINT cpuaccessFlags, UINT miscFlags)

Instantiates a new instance of a CD3D11_TEXTURE1D_DESC structure that is initialized with D3D11_TEXTURE1D_DESC values.

void ~CD3D11_TEXTURE1D_DESC()

Destroys an instance of a CD3D11_TEXTURE1D_DESC structure.

Remarks

Here is how D3D11.h defines CD3D11_TEXTURE1D_DESC:

struct CD3D11_TEXTURE1D_DESC : public D3D11_TEXTURE1D_DESC
{
    CD3D11_TEXTURE1D_DESC()
    {}
    explicit CD3D11_TEXTURE1D_DESC( const D3D11_TEXTURE1D_DESC& o ) :
        D3D11_TEXTURE1D_DESC( o )
    {}
    explicit CD3D11_TEXTURE1D_DESC(
        DXGI_FORMAT format,
        UINT width,
        UINT arraySize = 1,
        UINT mipLevels = 0,
        UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,
        D3D11_USAGE usage = D3D11_USAGE_DEFAULT,
        UINT cpuaccessFlags= 0,
        UINT miscFlags = 0 )
    {
        Width = width;
        MipLevels = mipLevels;
        ArraySize = arraySize;
        Format = format;
        Usage = usage;
        BindFlags = bindFlags;
        CPUAccessFlags = cpuaccessFlags;
        MiscFlags = miscFlags;
    }
    ~CD3D11_TEXTURE1D_DESC() {}
    operator const D3D11_TEXTURE1D_DESC&() const { return *this; }
};

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header d3d11.h

See also

CD3D11 Helper Structures