@@ -734,7 +734,7 @@ pub const BindGroupDescriptor = extern struct {
734
734
pub const BufferBindingLayout = extern struct {
735
735
next_in_chain : ? * const ChainedStruct = null ,
736
736
binding_type : BufferBindingType = .uniform ,
737
- has_dynamic_offset : u32 = 0 ,
737
+ has_dynamic_offset : U32Bool = .false ,
738
738
min_binding_size : u64 = 0 ,
739
739
};
740
740
@@ -774,12 +774,17 @@ pub const BindGroupLayoutDescriptor = extern struct {
774
774
entries : ? [* ]const BindGroupLayoutEntry ,
775
775
};
776
776
777
+ pub const U32Bool = enum (u32 ) {
778
+ false = 0 ,
779
+ true = 1 ,
780
+ };
781
+
777
782
pub const BufferDescriptor = extern struct {
778
783
next_in_chain : ? * const ChainedStruct = null ,
779
784
label : ? [* :0 ]const u8 = null ,
780
785
usage : BufferUsage ,
781
786
size : u64 ,
782
- mapped_at_creation : u32 = 0 ,
787
+ mapped_at_creation : U32Bool = .false ,
783
788
};
784
789
785
790
pub const CommandEncoderDescriptor = extern struct {
@@ -1153,11 +1158,11 @@ pub const RenderPassDepthStencilAttachment = extern struct {
1153
1158
depth_load_op : LoadOp = .undef ,
1154
1159
depth_store_op : StoreOp = .undef ,
1155
1160
depth_clear_value : f32 = 0.0 ,
1156
- depth_read_only : u32 = 0 ,
1161
+ depth_read_only : U32Bool = .false ,
1157
1162
stencil_load_op : LoadOp = .undef ,
1158
1163
stencil_store_op : StoreOp = .undef ,
1159
1164
stencil_clear_value : u32 = 0 ,
1160
- stencil_read_only : u32 = 0 ,
1165
+ stencil_read_only : U32Bool = .false ,
1161
1166
};
1162
1167
1163
1168
pub const RenderPassDescriptor = extern struct {
0 commit comments