WolfgangEngel

Currently I specify in D3D10CreateDeviceAndSwapChain() in the buffer usage the DXGI_USAGE_RENDER_TARGET_OUTPUT flag. If I specify the DXGI_USAGE_BACK_BUFFER flag I get an error message.
What is the difference between those two flags Isn't a back buffer not a render target ... I can't think of anything that makes a back buffer so special to give it its own flag :-)

Enlighten me please,

- Wolfgang



Re: Direct3D 10 DXGI_USAGE_BACK_BUFFER <-> DXGI_USAGE_RENDER_TARGET_OUTPUT

Sam Z. Glassenberg

I believe the expectation is that back buffers can be scanned out. You can bind almost anything as RT output from the pipeline in D3D10, but there is a limited set of formats that are required for scanout:

R8G8B8A8_UNORM
R8G8B8A8_UNORM_SRGB
R10G10B10A2_UNORM
R16G16B16A16_FLOAT

-Sam






Re: Direct3D 10 DXGI_USAGE_BACK_BUFFER <-> DXGI_USAGE_RENDER_TARGET_OUTPUT

WolfgangEngel

Hi Sam,

thanks for your help. What do you mean with scan out

- Wolfgang





Re: Direct3D 10 DXGI_USAGE_BACK_BUFFER <-> DXGI_USAGE_RENDER_TARGET_OUTPUT

DeanoCalver

Hi Wolf,
Scan out is an old nick name for buffers that can be presented and seen by the user.

Comes from the old days of RAMDACs and CRTs which would 'scan' the memory in horizontal lines (and the CRT tube) to show the image.

HTH,
Deano