Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sokol_gfx.h d3d11: fix depth-stencil pixel format problems #937

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

floooh
Copy link
Owner

@floooh floooh commented Nov 6, 2023

  • SG_PIXELFORMAT_DEPTH_STENCIL is now reported as renderable in sg_query_pixelformat()
  • depth-stencil textures are now created as DXGI_FORMAT_R24G8_TYPELESS
  • depth-stencil SRVs are now created as DXGI_FORMAT_R24_UNORM_X8_TYPELESS
  • depth-stencil DSVs are created as DXGI_FORMAT_D24_UNORM_S8_UINT

- SG_PIXELFORMAT_DEPTH_STENCIL is now reported as renderable
  in sg_query_pixelformat()
- depth-stencil textures are now created as DXGI_FORMAT_R24G8_TYPELESS
- depth-stencil SRVs are now created as
  DXGI_FORMAT_R24_UNORM_X8_TYPELESS
- depth-stencil DSVs are created as DXGI_FORMAT_D24_UNORM_S8_UINT
@floooh floooh merged commit d780d87 into master Nov 6, 2023
18 checks passed
@floooh floooh deleted the fix/issue-936 branch November 6, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant