ID3DX11FFT::ForwardTransform method (d3dcsx.h)

Performs a forward FFT.

Syntax

HRESULT ForwardTransform(
  [in]      const ID3D11UnorderedAccessView *pInputBuffer,
  [in, out] ID3D11UnorderedAccessView       **ppOutputBuffer
);

Parameters

[in] pInputBuffer

Type: const ID3D11UnorderedAccessView*

Pointer to ID3D11UnorderedAccessView onto the input buffer.

[in, out] ppOutputBuffer

Type: ID3D11UnorderedAccessView**

Pointer to a ID3D11UnorderedAccessView pointer. If *ppOutputBuffer is NULL, the computation will switch between temp buffers; in addition, the last buffer written to is stored at *ppOutputBuffer. Otherwise, *ppOutputBuffer is used as the output buffer (which might incur an extra copy).

Return value

Type: HRESULT

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

Remarks

ForwardTransform can be called after buffers have been attached to the context using ID3DX11FFT::AttachBuffersAndPrecompute. The combination of pInputBuffer and *ppOutputBuffer can be one of the temp buffers.

The format of complex data is interleaved components (for example, (Real0, Imag0), (Real1, Imag1) ... , and so on). Data is stored in row major order.

Requirements

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

See also

ID3DX11FFT