Exporter (0) Imprimer
Développer tout
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

ID3D11Linker::Link method

Links the shader and produces a shader blob that the Direct3D runtime can use.

Syntax


HRESULT Link(
  [in]   ID3D11ModuleInstance *pEntry,
  [in]   LPCSTR pEntryName,
  [in]   LPCSTR pNpTargetNameame,
  [in]   UINT uFlags,
  [out]  ID3DBlob **ppShaderBlob,
  [out]  ID3DBlob **ppErrorBuffer
);

Parameters

pEntry [in]

Type: ID3D11ModuleInstance*

A pointer to the ID3D11ModuleInstance interface for the shader module instance to link from.

pEntryName [in]

Type: LPCSTR

The name of the shader module instance to link from.

pNpTargetNameame [in]

Type: LPCSTR

The name for the shader blob that is produced.

uFlags [in]

Type: UINT

Reserved

ppShaderBlob [out]

Type: ID3DBlob**

A pointer to a variable that receives a pointer to the ID3DBlob interface that you can use to access the compiled shader code.

ppErrorBuffer [out]

Type: ID3DBlob**

A pointer to a variable that receives a pointer to the ID3DBlob interface that you can use to access compiler error messages.

Return value

Type: HRESULT

Returns S_OK if successful; otherwise, returns one of the Direct3D 11 Return Codes.

Requirements

Header

D3D11Shader.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

ID3D11Linker

 

 

Ajouts de la communauté

AJOUTER
Afficher:
© 2014 Microsoft