ID2D1ConcreteTransform::SetOutputBuffer method (d2d1effectauthor.h)

Sets the properties of the output buffer of the specified transform node.

Syntax

HRESULT SetOutputBuffer(
  D2D1_BUFFER_PRECISION bufferPrecision,
  D2D1_CHANNEL_DEPTH    channelDepth
);

Parameters

bufferPrecision

Type: D2D1_BUFFER_PRECISION

The number of bits and the type of the output buffer.

channelDepth

Type: D2D1_CHANNEL_DEPTH

The number of channels in the output buffer (1 or 4).

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULT Description
S_OK No error occurred.
E_INVALIDARG One or more arguments are not valid

Remarks

You can use the ID2D1EffectContext::IsBufferPrecisionSupported method to see if buffer precision is supported.

The available channel depth and precision depend on the capabilities of the underlying Microsoft Direct3D device.

Requirements

   
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1effectauthor.h
Library D2d1.lib

See also

D2D1_BUFFER_PRECISION

D2D1_CHANNEL_DEPTH

ID2D1ConcreteTransform