Jump to content
  • Advertisement
Sign in to follow this  
vlj

Vulkan Vulkan: d24_unorm_s8 support optional?

This topic is 1001 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

According to the Vulkan gpu info website and testing amd doesn't support the d24_unorm_s8_uint format.

At the hardware level it is know that d24_x8 format on dx and OGL is stored in 2 buffers, one 32bits storing depth and one 8 bits storing stencil values. However it's likely that the rop are still emitting 24 bits values leaving 8 undefined bits in the depth buffer to ensure compatibility.

However it looks like current Vulkan drivers doesn't want to emulate this behavior anymore. A d32_sfloat_u8 is available but float and int distribution are not the same. Is the spec leaving d24_x8 format optional or is it due to drivers being pre-release atm?

Share this post


Link to post
Share on other sites
Advertisement


At the hardware level it is know that d24_x8 format on dx and OGL is stored in 2 buffers, one 32bits storing depth and one 8 bits storing stencil values
This is up to the GPU. It will usually be a 32bit buffer containing 24bit depth with 8 wasted bits, and a separate 8bit buffer for stencil.

Returning an actual 32bit depth buffer when the user asked for a 24bit one is an error, and isn't allowed in D3D.

 

Modern GPU's want to drop support for the 24bit mode, because it's a waste of sillicon. It's easier for them to just support 32bit depth + 8bit stencil only... So I would guess that they're getting their way with Vulkan now.

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!