D3DX11CreateFFT function

Creates an ID3DX11FFT COM interface object.

Syntax

HRESULT D3DX11CreateFFT(
  ID3D11DeviceContext    *pDeviceContext,
  const D3DX11_FFT_DESC  *pDesc,
  UINT                   Flags,
  D3DX11_FFT_BUFFER_INFO *pBufferInfo,
  ID3DX11FFT             **ppFFT
);

Parameters

pDeviceContext

Type: ID3D11DeviceContext*

A pointer to the ID3D11DeviceContext interface to use for the FFT.

pDesc

Type: const D3DX11_FFT_DESC*

A pointer to a D3DX11_FFT_DESC structure that describes the shape of the FFT data as well as the scaling factors that should be used for forward and inverse transforms.

Flags

Type: UINT

Flags that affect the behavior of the FFT, can be 0 or a combination of flags from D3DX11_FFT_CREATE_FLAG.

pBufferInfo

Type: D3DX11_FFT_BUFFER_INFO*

A pointer to a D3DX11_FFT_BUFFER_INFO structure that receives the buffer requirements to execute the FFT algorithms. Use this info to allocate raw buffers of the specified (or larger) sizes and then call the ID3DX11FFT::AttachBuffersAndPrecompute method to register the buffers with the FFT object.

ppFFT

Type: ID3DX11FFT**

A pointer to a variable that receives a pointer to the ID3DX11FFT interface for the created FFT object.

Return value

Type: HRESULT

One of the Direct3D 11 Return Codes.

Requirements

   
Target Platform Windows
Header d3dcsx.h
Library D3dcsx.lib

See also

D3DCSX 11 Functions