(macos) add isStencil argument for creating depth texture on macOS (if true, creates texture with .depth24Unorm_stencil8

This commit is contained in:
Nick Fisher
2025-06-09 18:24:15 +08:00
parent 8866ffe210
commit 4c95bc5b70
2 changed files with 3 additions and 6 deletions

View File

@@ -310,7 +310,7 @@ SWIFT_CLASS("_TtC12swift_module20ThermionTextureSwift")
@property (nonatomic, strong) id <MTLTexture> _Nullable metalTexture;
@property (nonatomic) NSInteger metalTextureAddress;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithWidth:(int64_t)width height:(int64_t)height isDepth:(BOOL)isDepth OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithWidth:(int64_t)width height:(int64_t)height isDepth:(BOOL)isDepth isStencil:(BOOL)isStencil OBJC_DESIGNATED_INITIALIZER;
- (void)destroyTexture;
- (BOOL)fillWithPNGImageWithImageURL:(NSURL * _Nonnull)imageURL SWIFT_WARN_UNUSED_RESULT;
- (void)fillColor;