Jump to content
  • Advertisement
Sign in to follow this  
trjh2k2

DXGI_FORMAT question

This topic is 2477 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!