File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ block = "0.1.6"
35
35
foreign-types = " 0.5"
36
36
dispatch = { version = " 0.2" , optional = true }
37
37
paste = " 1"
38
+ io-surface = { git = " https://github.com/servo/core-foundation-rs" }
38
39
39
40
[dependencies .objc ]
40
41
version = " 0.2.4"
Original file line number Diff line number Diff line change @@ -1985,6 +1985,19 @@ impl DeviceRef {
1985
1985
unsafe { msg_send ! [ self , newTextureWithDescriptor: descriptor] }
1986
1986
}
1987
1987
1988
+ pub fn new_texture_with_descriptor_and_iosurface (
1989
+ & self ,
1990
+ descriptor : & TextureDescriptorRef ,
1991
+ iosurface : io_surface:: IOSurfaceRef ,
1992
+ plane : NSUInteger ,
1993
+ ) -> Texture {
1994
+ unsafe {
1995
+ msg_send ! [ self , newTextureWithDescriptor: descriptor
1996
+ iosurface: iosurface
1997
+ plane: plane]
1998
+ }
1999
+ }
2000
+
1988
2001
pub fn new_sampler ( & self , descriptor : & SamplerDescriptorRef ) -> SamplerState {
1989
2002
unsafe { msg_send ! [ self , newSamplerStateWithDescriptor: descriptor] }
1990
2003
}
You can’t perform that action at this time.
0 commit comments