Content-Length: 321516 | pFad | http://github.com/zig-gamedev/zig-gamedev/commit/e0307be69a24b9a20b01c1dbac8eb58a0667e7a2

F6 zgpu: explicitly align bool struct fields · zig-gamedev/zig-gamedev@e0307be · GitHub
Skip to content

Commit e0307be

Browse files
committed
zgpu: explicitly align bool struct fields
1 parent b31551d commit e0307be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libs/zgpu/src/wgpu.zig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ pub const RenderBundleEncoderDescriptor = extern struct {
769769
color_formats: ?[*]const TextureFormat,
770770
depth_stencil_format: TextureFormat,
771771
sample_count: u32,
772-
depth_read_only: bool,
773-
stencil_read_only: bool,
772+
depth_read_only: bool align(4),
773+
stencil_read_only: bool align(4),
774774
};
775775

776776
pub const VertexAttribute = extern struct {
@@ -1017,8 +1017,8 @@ pub const RequestAdapterOptions = extern struct {
10171017
compatible_surface: ?Surface = null,
10181018
power_preference: PowerPreference,
10191019
backend_type: BackendType = .undef,
1020-
force_fallback_adapter: bool = false,
1021-
compatibility_mode: bool = false,
1020+
force_fallback_adapter: bool align(4) = false,
1021+
compatibility_mode: bool align(4) = false,
10221022
};
10231023

10241024
pub const ComputePassTimestampWrite = extern struct {
@@ -1125,14 +1125,14 @@ pub const CommandBufferDescriptor = extern struct {
11251125

11261126
pub const CopyTextureForBrowserOptions = extern struct {
11271127
next_in_chain: ?*const ChainedStruct = null,
1128-
flip_y: bool,
1129-
needs_color_space_conversion: bool,
1128+
flip_y: bool align(4),
1129+
needs_color_space_conversion: bool align(4),
11301130
src_alpha_mode: AlphaMode,
11311131
src_transfer_function_parameters: ?[*]const f32,
11321132
conversion_matrix: ?[*]const f32,
11331133
dst_transfer_function_parameters: ?[*]const f32,
11341134
dst_alpha_mode: AlphaMode,
1135-
internal_usage: bool,
1135+
internal_usage: bool align(4),
11361136
};
11371137

11381138
pub const TextureViewDescriptor = extern struct {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/zig-gamedev/zig-gamedev/commit/e0307be69a24b9a20b01c1dbac8eb58a0667e7a2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy