title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
D3DX11CreateEffectFromMemory function (D3dx11effect.h) |
Creates an effect from a binary effect or file. |
4aa65efb-4c6b-4faf-b48f-01329bdff6cd |
|
|
|
|
|
reference |
05/31/2018 |
Creates an effect from a binary effect or file.
HRESULT D3DX11CreateEffectFromMemory(
void *pData,
SIZE_T DataLength,
UINT FXFlags,
ID3D11Device *pDevice,
ID3DX11Effect **ppEffect
);
-
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.
Type: HRESULT
The return value is one of the values listed in Direct3D 11 Return Codes.
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.
Requirement | Value |
---|---|
Header |
|