D3DX11CreateEffectFromMemory function

Creates an effect from a binary effect or file.

Syntax

HRESULT D3DX11CreateEffectFromMemory(
   void          *pData,
   SIZE_T        DataLength,
   UINT          FXFlags,
   ID3D11Device  *pDevice,
   ID3DX11Effect **ppEffect
);

Parameters

pData

Type: void*

Blob of compiled effect data.

DataLength

Type: SIZE_T

Length of the data blob.

FXFlags

Type: UINT

No effect flags exist. Set to zero.

pDevice

Type: ID3D11Device*

Pointer to the ID3D11Device on which to create Effect resources.

ppEffect

Type: ID3DX11Effect**

Address of the newly created ID3DX11Effect interface.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 11 Return Codes.

Remarks

Note

You must use Effects 11 source to build your effects-type application. For more info about using Effects 11 source, see Differences Between Effects 10 and Effects 11.

Requirements

Requirement Value
Header
D3dx11effect.h

See also

Effects 11 Functions