D3DSetBlobPart function (d3dcompiler.h)

Sets information in a compilation result.

Syntax

HRESULT D3DSetBlobPart(
  [in]  LPCVOID       pSrcData,
  [in]  SIZE_T        SrcDataSize,
  [in]  D3D_BLOB_PART Part,
  [in]  UINT          Flags,
  [in]  LPCVOID       pPart,
  [in]  SIZE_T        PartSize,
  [out] ID3DBlob      **ppNewShader
);

Parameters

[in] pSrcData

Type: LPCVOID

A pointer to compiled shader data.

[in] SrcDataSize

Type: SIZE_T

The length of the compiled shader data that pSrcData points to.

[in] Part

Type: D3D_BLOB_PART

A D3D_BLOB_PART-typed value that specifies the part to set. Currently, you can update only private data; that is, D3DSetBlobPart currently only supports the D3D_BLOB_PRIVATE_DATA value.

[in] Flags

Type: UINT

Flags that indicate how to set the blob part. Currently, no flags are defined; therefore, set to zero.

[in] pPart

Type: LPCVOID

A pointer to data to set in the compilation result.

[in] PartSize

Type: SIZE_T

The length of the data that pPart points to.

[out] ppNewShader

Type: ID3DBlob**

A pointer to a buffer that receives the ID3DBlob interface for the new shader in which the new part data is set.

Return value

Type: HRESULT

Returns one of the Direct3D 11 return codes.

Remarks

D3DSetBlobPart modifies data in a compiled shader. Currently, D3DSetBlobPart can update only the private data in a compiled shader. You can use D3DSetBlobPart to attach arbitrary uninterpreted data to a compiled shader.

Note  The D3dcompiler_44.dll or later version of the file contains the D3DSetBlobPart compiler function.
 

Requirements

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

See also

Functions