Export (0) Print
Expand All

ID3D11Buffer interface

A buffer interface accesses a buffer resource, which is unstructured memory. Buffers typically store vertex or index data.

Members

The ID3D11Buffer interface inherits from ID3D11Resource. ID3D11Buffer also has these types of members:

Methods

The ID3D11Buffer interface has these methods.

MethodDescription
GetDesc

Get the properties of a buffer resource.

 

Remarks

There are three types of buffers: vertex, index, or a shader-constant buffer. Create a buffer resource by calling ID3D11Device::CreateBuffer.

A buffer must be bound to the pipeline before it can be accessed. Buffers can be bound to the input-assembler stage by calls to ID3D11DeviceContext::IASetVertexBuffers and ID3D11DeviceContext::IASetIndexBuffer, to the stream-output stage by a call to ID3D11DeviceContext::SOSetTargets, and to a shader stage by calling the appropriate shader method (such as ID3D11DeviceContext::VSSetConstantBuffers for example).

Buffers can be bound to multiple pipeline stages simultaneously for reading. A buffer can also be bound to a single pipeline stage for writing; however, the same buffer cannot be bound for reading and writing simultaneously.

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

D3D11.h

Library

D3D11.lib

See also

Resource Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft