IDXGISwapChain3::SetColorSpace1 method (dxgi1_4.h)

Sets the color space used by the swap chain.

Syntax

HRESULT SetColorSpace1(
  [in] DXGI_COLOR_SPACE_TYPE ColorSpace
);

Parameters

[in] ColorSpace

Type: DXGI_COLOR_SPACE_TYPE

A DXGI_COLOR_SPACE_TYPE-typed value that specifies the color space to set.

Return value

Type: HRESULT

This method returns S_OK on success, or it returns one of the error codes that are described in the DXGI_ERROR topic.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header dxgi1_4.h
Library Dxgi.lib

See also

IDXGISwapChain3