D3DGetBlobPart

Retrieves a specific part from a compilation result.

Syntax

HRESULT D3DGetBlobPart(
         LPCVOID pSrcData,
         SIZE_T SrcDataSize,
         D3D_BLOB_PART Part,
         UINT Flags,
         ID3DBlob **ppPart
)  

Parameters

pSrcData
Type: LPCVOID 

[in] A pointer to uncompiled shader data; either ASCII HLSL code or a compiled effect.

SrcDataSize
Type: SIZE_T 

[in] Length of uncompiled shader data that pSrcData points to.

Part
Type: D3D_BLOB_PART 

[in] A D3D_BLOB_PART-typed value that specifies the part of the buffer to retrieve.

Flags
Type: UINT 

[in] Flags that indicate how to retrieve the blob part. Currently, no flags are defined.

ppPart
Type: ID3DBlob **

[out] The address of a pointer to the ID3DBlob interface that is used to retrieve the specified part of the buffer.

Return value

Type: HRESULT 

Returns one of the following Direct3D 10 Return Codes.

Remarks

D3DGetBlobPart retrieves the part of a blob (arbitrary length data buffer) that contains the type of data that the Part parameter specifies.

Requirements

Header: Declared in d3dcompiler.h.

Library: Use d3d11.lib.