SetOutputBuffer method
Collapse the table of content
Expand the table of content

ID2D1ConcreteTransform::SetOutputBuffer method

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.

HRESULTDescription
S_OKNo error occurred.
E_INVALIDARGOne 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 | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1effectauthor.h

Library

D2d1.lib

See also

ID2D1ConcreteTransform
D2D1_BUFFER_PRECISION
D2D1_CHANNEL_DEPTH

 

 

Show:
© 2016 Microsoft