D3DX11CreateFFT2DReal function

Creates an ID3DX11FFT COM interface object.

Syntax

HRESULT D3DX11CreateFFT2DReal(
  ID3D11DeviceContext    *pDeviceContext,
  UINT                   X,
  UINT                   Y,
  UINT                   Flags,
  D3DX11_FFT_BUFFER_INFO *pBufferInfo,
  ID3DX11FFT             **ppFFT
);

Parameters

pDeviceContext

Type: ID3D11DeviceContext*

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

X

Type: UINT

Length of the first dimension of the FFT.

Y

Type: UINT

Length of the second dimension of the FFT.

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

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

Requirements

   
Target Platform Windows
Header d3dcsx.h
Library D3dcsx.lib

See also

D3DCSX 11 Functions