CD3D11_BUFFER_DESC class
Represents a buffer and provides convenience methods for creating buffers.
Members
The CD3D11_BUFFER_DESC class inherits from D3D11_BUFFER_DESC. CD3D11_BUFFER_DESC also has these types of members:
Constructors
The CD3D11_BUFFER_DESC class has these constructors.
| Constructor | Description |
|---|---|
| CD3D11_BUFFER_DESC() |
Instantiates a new instance of an uninitialized CD3D11_BUFFER_DESC structure. |
| CD3D11_BUFFER_DESC(D3D11_BUFFER_DESC_values)(UINT,UINT,D3D11_USAGE,UINT,UINT,UINT) |
Instantiates a new instance of a CD3D11_BUFFER_DESC structure that is initialized with D3D11_BUFFER_DESC values. |
Methods
The CD3D11_BUFFER_DESC class has these methods.
| Method | Description |
|---|---|
| ~CD3D11_BUFFER_DESC() |
Destroys an instance of a CD3D11_BUFFER_DESC structure. |
| CD3D11_BUFFER_DESC(D3D11_BUFFER_DESC&)(const &D3D11_BUFFER_DESC) |
Instantiates a new instance of a CD3D11_BUFFER_DESC structure that is initialized with a D3D11_BUFFER_DESC structure. |
| D3D11_BUFFER_DESC() |
This operator returns the address of a D3D11_BUFFER_DESC structure that contains the data from the CD3D11_BUFFER_DESC instance. |
Remarks
Here is how D3D11.h defines CD3D11_BUFFER_DESC:
struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC
{
CD3D11_BUFFER_DESC()
{}
explicit CD3D11_BUFFER_DESC( const D3D11_BUFFER_DESC& o ) :
D3D11_BUFFER_DESC( o )
{}
explicit CD3D11_BUFFER_DESC(
UINT byteWidth,
UINT bindFlags,
D3D11_USAGE usage = D3D11_USAGE_DEFAULT,
UINT cpuaccessFlags = 0,
UINT miscFlags = 0,
UINT structureByteStride = 0 )
{
ByteWidth = byteWidth;
Usage = usage;
BindFlags = bindFlags;
CPUAccessFlags = cpuaccessFlags ;
MiscFlags = miscFlags;
StructureByteStride = structureByteStride;
}
~CD3D11_BUFFER_DESC() {}
operator const D3D11_BUFFER_DESC&() const { return *this; }
};
Requirements
|
Minimum supported client |
Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
See also