Partager via


ID3DBlob interface

This interface is used to return data of arbitrary length.

Members

The ID3DBlob interface inherits from the IUnknown interface. ID3DBlob also has these types of members:

  • Methods

Methods

The ID3DBlob interface has these methods.

Method Description
GetBufferPointer

Retrieves a pointer to the blob's data.

GetBufferSize

Retrieves the size, in bytes, of the blob's data.

 

Remarks

An ID3DBlob is obtained by calling the D3DCreateBlob function. D3DCreateBlob is contained in D3dcompiler.lib or D3dcompiler_nn.dll.

The ID3DBlob interface is type-defined in the D3DCommon.h header file as a ID3D10Blob interface, which is fully defined in the D3DCommon.h header file.

typedef ID3D10Blob ID3DBlob;

ID3DBlob is version-neutral and can be used in code for any Direct3D version.

Blobs can be used as data buffers. Blobs can also be used for storing vertex, adjacency, and material information during mesh optimization, and for loading operations. Also, these objects are used to return object code and error messages in APIs that compile vertex, geometry, and pixel shaders.

Requirements

Minimum supported client

Windows 7 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | UWP apps]

Header

D3Dcommon.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

Common Version Interfaces

D3DCreateBlob

ID3D10Blob in Direct3D 11

ID3D10Blob in Direct3D 10