@@ -4,22 +4,22 @@ use wasm_bindgen::prelude::*;
4
4
#[ cfg( web_sys_unstable_apis) ]
5
5
#[ wasm_bindgen]
6
6
extern "C" {
7
- # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutBinding ) ]
7
+ # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutEntry ) ]
8
8
#[ derive( Debug , Clone , PartialEq , Eq ) ]
9
- #[ doc = "The `GpuBindGroupLayoutBinding ` dictionary." ]
9
+ #[ doc = "The `GpuBindGroupLayoutEntry ` dictionary." ]
10
10
#[ doc = "" ]
11
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `*" ]
11
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `*" ]
12
12
#[ doc = "" ]
13
13
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
14
14
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
15
- pub type GpuBindGroupLayoutBinding ;
15
+ pub type GpuBindGroupLayoutEntry ;
16
16
}
17
17
#[ cfg( web_sys_unstable_apis) ]
18
- impl GpuBindGroupLayoutBinding {
18
+ impl GpuBindGroupLayoutEntry {
19
19
#[ cfg( feature = "GpuBindingType" ) ]
20
- #[ doc = "Construct a new `GpuBindGroupLayoutBinding `." ]
20
+ #[ doc = "Construct a new `GpuBindGroupLayoutEntry `." ]
21
21
#[ doc = "" ]
22
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `, `GpuBindingType`*" ]
22
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `, `GpuBindingType`*" ]
23
23
#[ doc = "" ]
24
24
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
25
25
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
@@ -34,7 +34,7 @@ impl GpuBindGroupLayoutBinding {
34
34
#[ cfg( web_sys_unstable_apis) ]
35
35
#[ doc = "Change the `binding` field of this object." ]
36
36
#[ doc = "" ]
37
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `*" ]
37
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `*" ]
38
38
#[ doc = "" ]
39
39
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
40
40
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
@@ -55,7 +55,7 @@ impl GpuBindGroupLayoutBinding {
55
55
#[ cfg( web_sys_unstable_apis) ]
56
56
#[ doc = "Change the `hasDynamicOffset` field of this object." ]
57
57
#[ doc = "" ]
58
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `*" ]
58
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `*" ]
59
59
#[ doc = "" ]
60
60
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
61
61
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
@@ -76,7 +76,7 @@ impl GpuBindGroupLayoutBinding {
76
76
#[ cfg( web_sys_unstable_apis) ]
77
77
#[ doc = "Change the `multisampled` field of this object." ]
78
78
#[ doc = "" ]
79
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `*" ]
79
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `*" ]
80
80
#[ doc = "" ]
81
81
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
82
82
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
@@ -95,18 +95,18 @@ impl GpuBindGroupLayoutBinding {
95
95
self
96
96
}
97
97
#[ cfg( web_sys_unstable_apis) ]
98
- #[ cfg( feature = "GpuTextureComponentType " ) ]
99
- #[ doc = "Change the `textureComponentType ` field of this object." ]
98
+ #[ cfg( feature = "GpuTextureFormat " ) ]
99
+ #[ doc = "Change the `storageTextureFormat ` field of this object." ]
100
100
#[ doc = "" ]
101
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `, `GpuTextureComponentType `*" ]
101
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `, `GpuTextureFormat `*" ]
102
102
#[ doc = "" ]
103
103
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
104
104
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
105
- pub fn texture_component_type ( & mut self , val : GpuTextureComponentType ) -> & mut Self {
105
+ pub fn storage_texture_format ( & mut self , val : GpuTextureFormat ) -> & mut Self {
106
106
use wasm_bindgen:: JsValue ;
107
107
let r = :: js_sys:: Reflect :: set (
108
108
self . as_ref ( ) ,
109
- & JsValue :: from ( "textureComponentType " ) ,
109
+ & JsValue :: from ( "storageTextureFormat " ) ,
110
110
& JsValue :: from ( val) ,
111
111
) ;
112
112
debug_assert ! (
@@ -117,18 +117,18 @@ impl GpuBindGroupLayoutBinding {
117
117
self
118
118
}
119
119
#[ cfg( web_sys_unstable_apis) ]
120
- #[ cfg( feature = "GpuTextureViewDimension " ) ]
121
- #[ doc = "Change the `textureDimension ` field of this object." ]
120
+ #[ cfg( feature = "GpuTextureComponentType " ) ]
121
+ #[ doc = "Change the `textureComponentType ` field of this object." ]
122
122
#[ doc = "" ]
123
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `, `GpuTextureViewDimension `*" ]
123
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `, `GpuTextureComponentType `*" ]
124
124
#[ doc = "" ]
125
125
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
126
126
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
127
- pub fn texture_dimension ( & mut self , val : GpuTextureViewDimension ) -> & mut Self {
127
+ pub fn texture_component_type ( & mut self , val : GpuTextureComponentType ) -> & mut Self {
128
128
use wasm_bindgen:: JsValue ;
129
129
let r = :: js_sys:: Reflect :: set (
130
130
self . as_ref ( ) ,
131
- & JsValue :: from ( "textureDimension " ) ,
131
+ & JsValue :: from ( "textureComponentType " ) ,
132
132
& JsValue :: from ( val) ,
133
133
) ;
134
134
debug_assert ! (
@@ -142,7 +142,7 @@ impl GpuBindGroupLayoutBinding {
142
142
#[ cfg( feature = "GpuBindingType" ) ]
143
143
#[ doc = "Change the `type` field of this object." ]
144
144
#[ doc = "" ]
145
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `, `GpuBindingType`*" ]
145
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `, `GpuBindingType`*" ]
146
146
#[ doc = "" ]
147
147
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
148
148
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
@@ -157,9 +157,31 @@ impl GpuBindGroupLayoutBinding {
157
157
self
158
158
}
159
159
#[ cfg( web_sys_unstable_apis) ]
160
+ #[ cfg( feature = "GpuTextureViewDimension" ) ]
161
+ #[ doc = "Change the `viewDimension` field of this object." ]
162
+ #[ doc = "" ]
163
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuTextureViewDimension`*" ]
164
+ #[ doc = "" ]
165
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
166
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
167
+ pub fn view_dimension ( & mut self , val : GpuTextureViewDimension ) -> & mut Self {
168
+ use wasm_bindgen:: JsValue ;
169
+ let r = :: js_sys:: Reflect :: set (
170
+ self . as_ref ( ) ,
171
+ & JsValue :: from ( "viewDimension" ) ,
172
+ & JsValue :: from ( val) ,
173
+ ) ;
174
+ debug_assert ! (
175
+ r. is_ok( ) ,
176
+ "setting properties should never fail on our dictionary objects"
177
+ ) ;
178
+ let _ = r;
179
+ self
180
+ }
181
+ #[ cfg( web_sys_unstable_apis) ]
160
182
#[ doc = "Change the `visibility` field of this object." ]
161
183
#[ doc = "" ]
162
- #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding `*" ]
184
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry `*" ]
163
185
#[ doc = "" ]
164
186
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
165
187
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
0 commit comments