@@ -49,27 +49,195 @@ extern "C" {
49
49
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
50
50
pub fn destroy ( this : & GpuBuffer ) ;
51
51
#[ cfg( web_sys_unstable_apis) ]
52
- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapReadAsync ) ]
53
- #[ doc = "The `mapReadAsync ()` method." ]
52
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
53
+ #[ doc = "The `getMappedRange ()` method." ]
54
54
#[ doc = "" ]
55
- #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapReadAsync )" ]
55
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange )" ]
56
56
#[ doc = "" ]
57
57
#[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
58
58
#[ doc = "" ]
59
59
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
60
60
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
61
- pub fn map_read_async ( this : & GpuBuffer ) -> :: js_sys:: Promise ;
61
+ pub fn get_mapped_range ( this : & GpuBuffer ) -> :: js_sys:: ArrayBuffer ;
62
62
#[ cfg( web_sys_unstable_apis) ]
63
- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapWriteAsync ) ]
64
- #[ doc = "The `mapWriteAsync ()` method." ]
63
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
64
+ #[ doc = "The `getMappedRange ()` method." ]
65
65
#[ doc = "" ]
66
- #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapWriteAsync )" ]
66
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange )" ]
67
67
#[ doc = "" ]
68
68
#[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
69
69
#[ doc = "" ]
70
70
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
71
71
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
72
- pub fn map_write_async ( this : & GpuBuffer ) -> :: js_sys:: Promise ;
72
+ pub fn get_mapped_range_with_u32 ( this : & GpuBuffer , offset : u32 ) -> :: js_sys:: ArrayBuffer ;
73
+ #[ cfg( web_sys_unstable_apis) ]
74
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
75
+ #[ doc = "The `getMappedRange()` method." ]
76
+ #[ doc = "" ]
77
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
78
+ #[ doc = "" ]
79
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
80
+ #[ doc = "" ]
81
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
82
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
83
+ pub fn get_mapped_range_with_f64 ( this : & GpuBuffer , offset : f64 ) -> :: js_sys:: ArrayBuffer ;
84
+ #[ cfg( web_sys_unstable_apis) ]
85
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
86
+ #[ doc = "The `getMappedRange()` method." ]
87
+ #[ doc = "" ]
88
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
89
+ #[ doc = "" ]
90
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
91
+ #[ doc = "" ]
92
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
93
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
94
+ pub fn get_mapped_range_with_u32_and_u32 (
95
+ this : & GpuBuffer ,
96
+ offset : u32 ,
97
+ size : u32 ,
98
+ ) -> :: js_sys:: ArrayBuffer ;
99
+ #[ cfg( web_sys_unstable_apis) ]
100
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
101
+ #[ doc = "The `getMappedRange()` method." ]
102
+ #[ doc = "" ]
103
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
104
+ #[ doc = "" ]
105
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
106
+ #[ doc = "" ]
107
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
108
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
109
+ pub fn get_mapped_range_with_f64_and_u32 (
110
+ this : & GpuBuffer ,
111
+ offset : f64 ,
112
+ size : u32 ,
113
+ ) -> :: js_sys:: ArrayBuffer ;
114
+ #[ cfg( web_sys_unstable_apis) ]
115
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
116
+ #[ doc = "The `getMappedRange()` method." ]
117
+ #[ doc = "" ]
118
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
119
+ #[ doc = "" ]
120
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
121
+ #[ doc = "" ]
122
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
123
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
124
+ pub fn get_mapped_range_with_u32_and_f64 (
125
+ this : & GpuBuffer ,
126
+ offset : u32 ,
127
+ size : f64 ,
128
+ ) -> :: js_sys:: ArrayBuffer ;
129
+ #[ cfg( web_sys_unstable_apis) ]
130
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange ) ]
131
+ #[ doc = "The `getMappedRange()` method." ]
132
+ #[ doc = "" ]
133
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
134
+ #[ doc = "" ]
135
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
136
+ #[ doc = "" ]
137
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
138
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
139
+ pub fn get_mapped_range_with_f64_and_f64 (
140
+ this : & GpuBuffer ,
141
+ offset : f64 ,
142
+ size : f64 ,
143
+ ) -> :: js_sys:: ArrayBuffer ;
144
+ #[ cfg( web_sys_unstable_apis) ]
145
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
146
+ #[ doc = "The `mapAsync()` method." ]
147
+ #[ doc = "" ]
148
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
149
+ #[ doc = "" ]
150
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
151
+ #[ doc = "" ]
152
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
153
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
154
+ pub fn map_async ( this : & GpuBuffer , mode : u32 ) -> :: js_sys:: Promise ;
155
+ #[ cfg( web_sys_unstable_apis) ]
156
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
157
+ #[ doc = "The `mapAsync()` method." ]
158
+ #[ doc = "" ]
159
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
160
+ #[ doc = "" ]
161
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
162
+ #[ doc = "" ]
163
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
164
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
165
+ pub fn map_async_with_u32 ( this : & GpuBuffer , mode : u32 , offset : u32 ) -> :: js_sys:: Promise ;
166
+ #[ cfg( web_sys_unstable_apis) ]
167
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
168
+ #[ doc = "The `mapAsync()` method." ]
169
+ #[ doc = "" ]
170
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
171
+ #[ doc = "" ]
172
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
173
+ #[ doc = "" ]
174
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
175
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
176
+ pub fn map_async_with_f64 ( this : & GpuBuffer , mode : u32 , offset : f64 ) -> :: js_sys:: Promise ;
177
+ #[ cfg( web_sys_unstable_apis) ]
178
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
179
+ #[ doc = "The `mapAsync()` method." ]
180
+ #[ doc = "" ]
181
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
182
+ #[ doc = "" ]
183
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
184
+ #[ doc = "" ]
185
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
186
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
187
+ pub fn map_async_with_u32_and_u32 (
188
+ this : & GpuBuffer ,
189
+ mode : u32 ,
190
+ offset : u32 ,
191
+ size : u32 ,
192
+ ) -> :: js_sys:: Promise ;
193
+ #[ cfg( web_sys_unstable_apis) ]
194
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
195
+ #[ doc = "The `mapAsync()` method." ]
196
+ #[ doc = "" ]
197
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
198
+ #[ doc = "" ]
199
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
200
+ #[ doc = "" ]
201
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
202
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
203
+ pub fn map_async_with_f64_and_u32 (
204
+ this : & GpuBuffer ,
205
+ mode : u32 ,
206
+ offset : f64 ,
207
+ size : u32 ,
208
+ ) -> :: js_sys:: Promise ;
209
+ #[ cfg( web_sys_unstable_apis) ]
210
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
211
+ #[ doc = "The `mapAsync()` method." ]
212
+ #[ doc = "" ]
213
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
214
+ #[ doc = "" ]
215
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
216
+ #[ doc = "" ]
217
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
218
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
219
+ pub fn map_async_with_u32_and_f64 (
220
+ this : & GpuBuffer ,
221
+ mode : u32 ,
222
+ offset : u32 ,
223
+ size : f64 ,
224
+ ) -> :: js_sys:: Promise ;
225
+ #[ cfg( web_sys_unstable_apis) ]
226
+ # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync ) ]
227
+ #[ doc = "The `mapAsync()` method." ]
228
+ #[ doc = "" ]
229
+ #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)" ]
230
+ #[ doc = "" ]
231
+ #[ doc = "*This API requires the following crate features to be activated: `GpuBuffer`*" ]
232
+ #[ doc = "" ]
233
+ #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
234
+ #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
235
+ pub fn map_async_with_f64_and_f64 (
236
+ this : & GpuBuffer ,
237
+ mode : u32 ,
238
+ offset : f64 ,
239
+ size : f64 ,
240
+ ) -> :: js_sys:: Promise ;
73
241
#[ cfg( web_sys_unstable_apis) ]
74
242
# [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = unmap ) ]
75
243
#[ doc = "The `unmap()` method." ]
0 commit comments