1、ID3D11Buffer结构体
ID3D11Buffer : public ID3D11Resource
{
public:
virtual void STDMETHODCALLTYPE GetDesc(
/* [annotation] */
__out D3D11_BUFFER_DESC *pDesc) = 0;
};
ID3D11Resource : public ID3D11DeviceChild
{
public:
virtual void STDMETHODCALLTYPE GetType(
/* [annotation] */
__out D3D11_RESOURCE_DIMENSION *pResourceDimension) = 0;
virtual void STDMETHODCALLTYPE SetEvictionPriority(
/* [annotation] */
__in UINT EvictionPriority) = 0;
virtual UINT STDMETHODCALLTYPE GetEvictionPriority( void) = 0;
};
2、D3D11_BUFFER_DESC结构体
typedef struct D3D11_BUFFER_DESC
{
UINT ByteWidth;
D3D11_USAGE Usage;
UINT BindFlags;
UINT CPUAccessFlags;
UINT MiscFlags;
UINT StructureByteStride;
} D3D11_BUFFER_DESC;
3、D3D11_SUBRESOURCE_DATA
typedef struct D3D11_SUBRESOURCE_DATA
{
const void *pSysMem;
UINT SysMemPitch;
UINT SysMemSlicePitch;
} D3D11_SUBRESOURCE_DATA;
4、ID3D11InputLayout结构体
ID3D11InputLayout : public ID3D11DeviceChild
{
public:
};
5、ID3D11PixelShader结构体
ID3D11PixelShader : public ID3D11DeviceChild
{
public:
};
6、ID3D11VertexShader结构体
ID3D11VertexShader : public ID3D11DeviceChild
{
public:
};
7、ID3D10Blob
ID3D10Blob : public IUnknown
{
public:
virtual LPVOID STDMETHODCALLTYPE GetBufferPointer( void) = 0;
virtual SIZE_T STDMETHODCALLTYPE GetBufferSize( void) = 0;
};
8、D3D11_INPUT_ELEMENT_DESC
typedef struct D3D11_INPUT_ELEMENT_DESC
{
LPCSTR SemanticName;
UINT SemanticIndex;
DXGI_FORMAT Format;
UINT InputSlot;
UINT AlignedByteOffset;
D3D11_INPUT_CLASSIFICATION InputSlotClass;
UINT InstanceDataStepRate;
} D3D11_INPUT_ELEMENT_DESC;
9、D3D11_INPUT_CLASSIFICATION
typedef
enum D3D11_INPUT_CLASSIFICATION
{ D3D11_INPUT_PER_VERTEX_DATA
= 0,
D3D11_INPUT_PER_INSTANCE_DATA
= 1
} D3D11_INPUT_CLASSIFICATION;