D3DX11CreateFFT function (d3dcsx.h)

Creates an ID3DX11FFT COM interface object.

Syntax

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

Parameters

pDeviceContext

Type: ID3D11DeviceContext*

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

[in] 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.

[out] 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.

[out] 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

Requirement Value
Target Platform Windows
Header d3dcsx.h
Library D3dcsx.lib

See also

D3DCSX 11 Functions