D3DGetBlobPart function (d3dcompiler.h)

Retrieves a specific part from a compilation result.

Syntax

HRESULT D3DGetBlobPart(
  [in]  LPCVOID       pSrcData,
  [in]  SIZE_T        SrcDataSize,
  [in]  D3D_BLOB_PART Part,
  [in]  UINT          Flags,
  [out] ID3DBlob      **ppPart
);

Parameters

[in] pSrcData

Type: LPCVOID

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

[in] SrcDataSize

Type: SIZE_T

Length of uncompiled shader data that pSrcData points to.

[in] Part

Type: D3D_BLOB_PART

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

[in] Flags

Type: UINT

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

[out] ppPart

Type: ID3DBlob**

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 Direct3D 11 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

Requirement Value
Target Platform Windows
Header d3dcompiler.h
Library D3DCompiler.lib
DLL D3DCompiler_47.dll

See also

Functions