Why is there a problem with the DXGI_USAGE flag regardless of what I set it to?
My IDXGIFactory2::CreateSwapChainForComposition fails every time with the following error:
DXGI ERROR: IDXGIFactory::CreateSwapChain: The BufferUsage field of the swapchain description contains some DXGI_USAGE flags that are not supported. DXGI_SWAP_CHAIN_DESC{ SwapChainType = ..._Composition, BufferDesc = DXGI_MODE_DESC1{Width = 320, Height = 200, RefreshRate = DXGI_RATIONAL{ Numerator = 0, Denominator = 1 }, Format = B8G8R8A8_UNORM, ScanlineOrdering = ..._UNSPECIFIED, Scaling = ..._UNSPECIFIED, Stereo = FALSE }, SampleDesc = DXGI_SAMPLE_DESC{ Count = 1, Quality = 0 }, BufferUsage = 0xb, BufferCount = 3, OutputWindow = 0x0000000000000000, Scaling = ..._STRETCH, Windowed = TRUE, SwapEffect = ..._FLIP_SEQUENTIAL, AlphaMode = ..._PREMULTIPLIED, Flags = 0x0 } [ MISCELLANEOUS ERROR #114: ]
Why are none of the DXGI_USAGE flags supported?