@@ -6,7 +6,7 @@ use super::gl;
6
6
use super :: mtl;
7
7
#[ cfg( feature = "vulkan" ) ]
8
8
use super :: vk;
9
- use super :: { BackendAPI , BackendSurfaceMutableState } ;
9
+ use super :: { BackendAPI , BackendSurfaceMutableState , Mipmapped } ;
10
10
use crate :: { prelude:: * , ISize } ;
11
11
use skia_bindings:: {
12
12
self as sb, GrBackendFormat , GrBackendRenderTarget , GrBackendTexture , GrMipmapped ,
@@ -175,7 +175,7 @@ impl fmt::Debug for BackendTexture {
175
175
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
176
176
let mut d = f. debug_struct ( "BackendTexture" ) ;
177
177
d. field ( "dimensions" , & self . dimensions ( ) ) ;
178
- d. field ( "has_mipmaps " , & self . has_mipmaps ( ) ) ;
178
+ d. field ( "mipmapped " , & self . mipmapped ( ) ) ;
179
179
d. field ( "backend" , & self . backend ( ) ) ;
180
180
#[ cfg( feature = "gl" ) ]
181
181
d. field ( "gl_texture_info" , & self . gl_texture_info ( ) ) ;
@@ -269,6 +269,10 @@ impl BackendTexture {
269
269
self . native ( ) . fHeight
270
270
}
271
271
272
+ pub fn mipmapped ( & self ) -> Mipmapped {
273
+ self . native ( ) . fMipmapped
274
+ }
275
+
272
276
#[ deprecated( since = "0.35.0" , note = "Use has_mipmaps()" ) ]
273
277
pub fn has_mip_maps ( & self ) -> bool {
274
278
self . has_mipmaps ( )
0 commit comments