Skip to content

Commit

Permalink
sokol_gfx.h, sokol_shape.h: remove the SOKOL_ZIG_BINDINGS struct size…
Browse files Browse the repository at this point in the history
… workaround
  • Loading branch information
floooh committed Dec 4, 2023
1 parent b0ee2d3 commit c08a34d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -1641,9 +1641,6 @@ typedef struct sg_pixelformat_info {
bool blend; // alpha-blending is supported
bool msaa; // pixel format can be used as MSAA render target
bool depth; // pixel format is a depth format
#if defined(SOKOL_ZIG_BINDINGS)
uint32_t __pad[3];
#endif
} sg_pixelformat_info;

/*
Expand All @@ -1655,9 +1652,6 @@ typedef struct sg_features {
bool image_clamp_to_border; // border color and clamp-to-border UV-wrap mode is supported
bool mrt_independent_blend_state; // multiple-render-target rendering can use per-render-target blend state
bool mrt_independent_write_mask; // multiple-render-target rendering can use per-render-target color write masks
#if defined(SOKOL_ZIG_BINDINGS)
uint32_t __pad[3];
#endif
} sg_features;

/*
Expand Down Expand Up @@ -2778,18 +2772,12 @@ typedef struct sg_vertex_buffer_layout_state {
int stride;
sg_vertex_step step_func;
int step_rate;
#if defined(SOKOL_ZIG_BINDINGS)
uint32_t __pad[2];
#endif
} sg_vertex_buffer_layout_state;

typedef struct sg_vertex_attr_state {
int buffer_index;
int offset;
sg_vertex_format format;
#if defined(SOKOL_ZIG_BINDINGS)
uint32_t __pad[2];
#endif
} sg_vertex_attr_state;

typedef struct sg_vertex_layout_state {
Expand Down
6 changes: 0 additions & 6 deletions util/sokol_shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,18 +421,12 @@ typedef struct sshape_vertex_t {
typedef struct sshape_element_range_t {
int base_element;
int num_elements;
#if defined(SOKOL_ZIG_BINDINGS)
uint32_t __pad[3];
#endif
} sshape_element_range_t;

/* number of elements and byte size of build actions */
typedef struct sshape_sizes_item_t {
uint32_t num; // number of elements
uint32_t size; // the same as size in bytes
#if defined(SOKOL_ZIG_BINDINGS)
uint32_t __pad[3];
#endif
} sshape_sizes_item_t;

typedef struct sshape_sizes_t {
Expand Down

0 comments on commit c08a34d

Please sign in to comment.