Skip to content

Commit

Permalink
sokol_gfx: add more explicit depth / stencil formats
Browse files Browse the repository at this point in the history
  • Loading branch information
kcbanner committed Oct 17, 2024
1 parent d6bfcd6 commit f24e71d
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 172 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
## Updates

### 16-Oct-2024

- sokol_gfx.h: Add explicit depth / stencil formats:
- `SG_PIXELFORMAT_DEPTH24PLUS`,
- `SG_PIXELFORMAT_DEPTH24PLUS_STENCIL8`
- `SG_PIXELFORMAT_DEPTH32F`
- `SG_PIXELFORMAT_DEPTH32F_STENCIL8`

This allows selection of an explicit format type, resulting in a consistent
precision regardless of backend. Existing `SG_PIXELFORMAT_DEPTH` and
`SG_PIXELFORMAT_DEPTH_STENCIL` formats are unchanged.

For details see the proposal https://github.com/floooh/sokol/issues/1122
and PR: https://github.com/floooh/sokol/pull/1124

### 14-Oct-2024

- sokol_gfx.h: The pixel format RG11B10F is now marked as renderable in the GL
Expand Down
Loading

0 comments on commit f24e71d

Please sign in to comment.