Skip to content

Commit

Permalink
sokol_gfx.h: add unorm10-10-10-2 vertex format
Browse files Browse the repository at this point in the history
  • Loading branch information
munrocket authored Sep 7, 2024
1 parent df71cc2 commit e96dc20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -13502,8 +13502,7 @@ _SOKOL_PRIVATE WGPUVertexFormat _sg_wgpu_vertexformat(sg_vertex_format f) {
case SG_VERTEXFORMAT_USHORT4N: return WGPUVertexFormat_Unorm16x4;
case SG_VERTEXFORMAT_HALF2: return WGPUVertexFormat_Float16x2;
case SG_VERTEXFORMAT_HALF4: return WGPUVertexFormat_Float16x4;
// FIXME! UINT10_N2 (see https://github.com/gpuweb/gpuweb/issues/4275)
case SG_VERTEXFORMAT_UINT10_N2: return WGPUVertexFormat_Undefined;
case SG_VERTEXFORMAT_UINT10_N2: return WGPUVertexFormat_Unorm10_10_10_2;
default:
SOKOL_UNREACHABLE;
return WGPUVertexFormat_Force32;
Expand Down

0 comments on commit e96dc20

Please sign in to comment.