D3DSetBlobPart function

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Note  You can use this API to develop your Windows Store apps, but you can't use it in apps that you submit to the Windows Store.

Sets information in a compilation result.

Syntax

HRESULT WINAPI 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

pSrcData [in]

A pointer to compiled shader data.

SrcDataSize [in]

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

Part [in]

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.

Flags [in]

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

pPart [in]

A pointer to data to set in the compilation result.

PartSize [in]

The length of the data that pPart points to.

ppNewShader [out]

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

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

Header

D3Dcompiler.h

Library

D3dcompiler.lib or D3dcompiler_nn.dll

See also

Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/5/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.