update Swift bindings and remove dylib from repository (should be recompiled when running via CI/CD?)

This commit is contained in:
Nick Fisher
2025-06-09 18:25:18 +08:00
parent 4c95bc5b70
commit 9054879722
2 changed files with 15 additions and 9 deletions

View File

@@ -133,9 +133,9 @@ final _objc_msgSend_4sp4xj = objc.msgSendPointer
typedef instancetype = ffi.Pointer<objc.ObjCObject>; typedef instancetype = ffi.Pointer<objc.ObjCObject>;
typedef Dartinstancetype = objc.ObjCObjectBase; typedef Dartinstancetype = objc.ObjCObjectBase;
late final _sel_init = objc.registerName("init"); late final _sel_init = objc.registerName("init");
late final _sel_initWithWidth_height_isDepth_ = late final _sel_initWithWidth_height_isDepth_isStencil_ =
objc.registerName("initWithWidth:height:isDepth:"); objc.registerName("initWithWidth:height:isDepth:isStencil:");
final _objc_msgSend_1gtkwyl = objc.msgSendPointer final _objc_msgSend_1v8gk45 = objc.msgSendPointer
.cast< .cast<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Pointer<objc.ObjCObject> Function( ffi.Pointer<objc.ObjCObject> Function(
@@ -143,10 +143,11 @@ final _objc_msgSend_1gtkwyl = objc.msgSendPointer
ffi.Pointer<objc.ObjCSelector>, ffi.Pointer<objc.ObjCSelector>,
ffi.Int64, ffi.Int64,
ffi.Int64, ffi.Int64,
ffi.Bool,
ffi.Bool)>>() ffi.Bool)>>()
.asFunction< .asFunction<
ffi.Pointer<objc.ObjCObject> Function(ffi.Pointer<objc.ObjCObject>, ffi.Pointer<objc.ObjCObject> Function(ffi.Pointer<objc.ObjCObject>,
ffi.Pointer<objc.ObjCSelector>, int, int, bool)>(); ffi.Pointer<objc.ObjCSelector>, int, int, bool, bool)>();
late final _sel_destroyTexture = objc.registerName("destroyTexture"); late final _sel_destroyTexture = objc.registerName("destroyTexture");
final _objc_msgSend_1pl9qdv = objc.msgSendPointer final _objc_msgSend_1pl9qdv = objc.msgSendPointer
.cast< .cast<
@@ -362,11 +363,16 @@ class ThermionTextureSwift extends objc.NSObject {
retain: false, release: true); retain: false, release: true);
} }
/// initWithWidth:height:isDepth: /// initWithWidth:height:isDepth:isStencil:
ThermionTextureSwift initWithWidth_height_isDepth_( ThermionTextureSwift initWithWidth_height_isDepth_isStencil_(
int width, int height, bool isDepth) { int width, int height, bool isDepth, bool isStencil) {
final _ret = _objc_msgSend_1gtkwyl(this.ref.retainAndReturnPointer(), final _ret = _objc_msgSend_1v8gk45(
_sel_initWithWidth_height_isDepth_, width, height, isDepth); this.ref.retainAndReturnPointer(),
_sel_initWithWidth_height_isDepth_isStencil_,
width,
height,
isDepth,
isStencil);
return ThermionTextureSwift.castFromPointer(_ret, return ThermionTextureSwift.castFromPointer(_ret,
retain: false, release: true); retain: false, release: true);
} }