Esta página foi útil?
Seus comentários sobre este conteúdo são importantes. Queremos saber sua opinião.
Comentários adicionais?
1500 caracteres restantes
Exportar (0) Imprimir
Expandir Tudo
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

D3DSetBlobPart function

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]

Type: LPCVOID

A pointer to compiled shader data.

SrcDataSize [in]

Type: SIZE_T

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

Part [in]

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.

Flags [in]

Type: UINT

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

pPart [in]

Type: LPCVOID

A pointer to data to set in the compilation result.

PartSize [in]

Type: SIZE_T

The length of the data that pPart points to.

ppNewShader [out]

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.

Windows Phone 8.1: This API is supported.

Requirements

Header

D3Dcompiler.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

Functions

 

 

Contribuições da comunidade

ADICIONAR
Mostrar:
© 2015 Microsoft