Skip to content

Commit

Permalink
sokol.gfx: update the PixelFormat V enum, to exactly match the C sg_p…
Browse files Browse the repository at this point in the history
…ixel_format from thirdparty/sokol/sokol_gfx.h
  • Loading branch information
spytheman committed Mar 17, 2024
1 parent d7cc6f5 commit bedaf4f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions vlib/sokol/gfx/enums.v
Expand Up @@ -47,6 +47,7 @@ pub enum PixelFormat as u32 {
bgra8
rgb10a2
rg11b10f
rgb9e5
//
rg32ui
rg32si
Expand All @@ -61,30 +62,37 @@ pub enum PixelFormat as u32 {
rgba32si
rgba32f
//
//
//
depth
depth_stencil
//
bc1_rgba
bc2_rgba
bc3_rgba
bc3_srgba
bc4_r
bc4_rsn
bc5_rg
bc5_rgsn
bc6h_rgbf
bc6h_rgbuf
bc7_rgba
pvrtc_rgb_2bpp
pvrtc_rgb_4bpp
pvrtc_rgba_2bpp
pvrtc_rgba_4bpp
bc7_srgba
pvrtc_rgb_2bpp // deprecated
pvrtc_rgb_4bpp // deprecated
pvrtc_rgba_2bpp // deprecated
pvrtc_rgba_4bpp // deprecated
etc2_rgb8
etc2_srgb8
etc2_rgb8a1
etc2_rgba8
etc2_srgb8a8
etc2_rg11
etc2_rg11sn
//
rgb9e5
astc_4x4_rgba
astc_4x4_srgba
//
_num
_force_u32 = 0x7FFFFFFF
Expand Down

0 comments on commit bedaf4f

Please sign in to comment.