Skip to content

Commit

Permalink
remove the SOKOL_ZIG_BINDINGS padding hack, should no longer be needed
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jul 27, 2023
1 parent 2a4ef91 commit 39d7280
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/sokol/c/sokol_defines.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define SOKOL_ZIG_BINDINGS
#if !defined(__ANDROID__)
#define SOKOL_NO_ENTRY
#endif
Expand Down
4 changes: 0 additions & 4 deletions src/sokol/gfx.zig
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,12 @@ pub const PixelformatInfo = extern struct {
blend: bool = false,
msaa: bool = false,
depth: bool = false,
__pad: [3]u32 = [_]u32{0} ** 3,
};
pub const Features = extern struct {
origin_top_left: bool = false,
image_clamp_to_border: bool = false,
mrt_independent_blend_state: bool = false,
mrt_independent_write_mask: bool = false,
__pad: [3]u32 = [_]u32{0} ** 3,
};
pub const Limits = extern struct {
max_image_size_2d: i32 = 0,
Expand Down Expand Up @@ -551,13 +549,11 @@ pub const VertexBufferLayoutState = extern struct {
stride: i32 = 0,
step_func: VertexStep = .DEFAULT,
step_rate: i32 = 0,
__pad: [2]u32 = [_]u32{0} ** 2,
};
pub const VertexAttrState = extern struct {
buffer_index: i32 = 0,
offset: i32 = 0,
format: VertexFormat = .INVALID,
__pad: [2]u32 = [_]u32{0} ** 2,
};
pub const VertexLayoutState = extern struct {
buffers: [8]VertexBufferLayoutState = [_]VertexBufferLayoutState{.{}} ** 8,
Expand Down
2 changes: 0 additions & 2 deletions src/sokol/shape.zig
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ pub const Vertex = extern struct {
pub const ElementRange = extern struct {
base_element: u32 = 0,
num_elements: u32 = 0,
__pad: [3]u32 = [_]u32{0} ** 3,
};
pub const SizesItem = extern struct {
num: u32 = 0,
size: u32 = 0,
__pad: [3]u32 = [_]u32{0} ** 3,
};
pub const Sizes = extern struct {
vertices: SizesItem = .{},
Expand Down

0 comments on commit 39d7280

Please sign in to comment.