D3D12IsLayoutOpaque function

Indicates whether the layout is opaque.

Syntax

bool inline D3D12IsLayoutOpaque(
   D3D12_TEXTURE_LAYOUT Layout
);

Parameters

Layout

Type: D3D12_TEXTURE_LAYOUT

The layout to check, as a D3D12_TEXTURE_LAYOUT.

Return value

Type: bool

A bool that indicates whether the layout is opaque. A layout is opaque if it is D3D12_TEXTURE_LAYOUT_UNKNOWN or D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE.

Requirements

Requirement Value
Header
D3dx12.h
Library
D3D12.lib
DLL
D3D12.dll

See also

Helper Functions for D3D12