21
21
#[ cfg( not( target_family = "wasm" ) ) ]
22
22
fn convert_opengl_texture ( opengl_texture : std:: num:: NonZero < u32 > ) -> Self :: NativeTexture ;
23
23
24
- #[ cfg( feature = "unstable-wgpu-26 " ) ]
25
- fn convert_wgpu_26_texture ( wgpu_texture : wgpu_26 :: Texture ) -> Self :: NativeTexture ;
24
+ #[ cfg( feature = "unstable-wgpu-27 " ) ]
25
+ fn convert_wgpu_27_texture ( wgpu_texture : wgpu_27 :: Texture ) -> Self :: NativeTexture ;
26
26
}
27
27
28
28
impl TextureImporter for femtovg:: renderer:: OpenGl {
@@ -31,8 +31,8 @@ impl TextureImporter for femtovg::renderer::OpenGl {
31
31
glow:: NativeTexture ( opengl_texture)
32
32
}
33
33
34
- #[ cfg( feature = "unstable-wgpu-26 " ) ]
35
- fn convert_wgpu_26_texture ( _wgpu_texture : wgpu_26 :: Texture ) -> Self :: NativeTexture {
34
+ #[ cfg( feature = "unstable-wgpu-27 " ) ]
35
+ fn convert_wgpu_27_texture ( _wgpu_texture : wgpu_27 :: Texture ) -> Self :: NativeTexture {
36
36
unimplemented ! ( )
37
37
}
38
38
}
@@ -43,8 +43,8 @@ impl TextureImporter for femtovg::renderer::WGPURenderer {
43
43
todo ! ( )
44
44
}
45
45
46
- #[ cfg( feature = "unstable-wgpu-26 " ) ]
47
- fn convert_wgpu_26_texture ( wgpu_texture : wgpu_26 :: Texture ) -> Self :: NativeTexture {
46
+ #[ cfg( feature = "unstable-wgpu-27 " ) ]
47
+ fn convert_wgpu_27_texture ( wgpu_texture : wgpu_27 :: Texture ) -> Self :: NativeTexture {
48
48
wgpu_texture
49
49
}
50
50
}
@@ -183,8 +183,8 @@ impl<R: femtovg::Renderer + TextureImporter> Texture<R> {
183
183
)
184
184
. unwrap ( )
185
185
}
186
- #[ cfg( all( not( target_arch = "wasm32" ) , feature = "unstable-wgpu-26 " ) ) ]
187
- ImageInner :: WGPUTexture ( i_slint_core:: graphics:: WGPUTexture :: WGPU26Texture (
186
+ #[ cfg( all( not( target_arch = "wasm32" ) , feature = "unstable-wgpu-27 " ) ) ]
187
+ ImageInner :: WGPUTexture ( i_slint_core:: graphics:: WGPUTexture :: WGPU27Texture (
188
188
texture,
189
189
) ) => {
190
190
let texture = texture. clone ( ) ;
@@ -193,7 +193,7 @@ impl<R: femtovg::Renderer + TextureImporter> Texture<R> {
193
193
canvas
194
194
. borrow_mut ( )
195
195
. create_image_from_native_texture (
196
- <R as TextureImporter >:: convert_wgpu_26_texture ( texture) ,
196
+ <R as TextureImporter >:: convert_wgpu_27_texture ( texture) ,
197
197
femtovg:: ImageInfo :: new (
198
198
image_flags,
199
199
size. width as _ ,
@@ -203,8 +203,8 @@ impl<R: femtovg::Renderer + TextureImporter> Texture<R> {
203
203
)
204
204
. unwrap ( )
205
205
}
206
- #[ cfg( all( not( target_arch = "wasm32" ) , feature = "unstable-wgpu-27 " ) ) ]
207
- ImageInner :: WGPUTexture ( i_slint_core:: graphics:: WGPUTexture :: WGPU27Texture ( ..) ) => {
206
+ #[ cfg( all( not( target_arch = "wasm32" ) , feature = "unstable-wgpu-26 " ) ) ]
207
+ ImageInner :: WGPUTexture ( i_slint_core:: graphics:: WGPUTexture :: WGPU26Texture ( ..) ) => {
208
208
return None ;
209
209
}
210
210
_ => {
0 commit comments