Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

DXGI_FORMAT question

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 TedEH   Members   

376
Like
0Likes
Like

Posted 04 March 2012 - 10:26 PM

I'm new to this site, so forgive me if I'm posting this in the wrong place, or if it's been answered before, but I'm confused about something regarding DXGI_FORMATs and I figure someone here might know the answer.

When I create render targets (for shadow maps) I use DXGI_FORMAT_R16G16B16A16_UNORM, but when I create my swap chain, I'm passing R8G8B8A8 instead. Anything different fails. Is there a reason that I can't use anything other than DXGI_FORMAT_R8G8B8A8_UNORM to create a swapchain? I can't find any information about it anywhere, so maybe it's obvious and / or I'm doing something wrong.

-Tom

#2 MJP   Moderators   

19483
Like
0Likes
Like

Posted 05 March 2012 - 05:07 PM

Only a subset of formats support being used for display scan out. If you go to the DXGI overview in the docs, there is a table with supported formats for each feature level. You can also see the available output formats in the D3D caps viewer.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.