feat! js_interop improvements

This commit is contained in:
Nick Fisher committed 2025-05-07 17:06:38 +08:00
1 parent 63e2dcd0ca
commit 2f16908992
159 files changed
+12989 -8377

No files matched your search

@@ -46,8 +46,8 @@ import GLKit
print("Creating color texture")
let pixelFormat: MTLPixelFormat = isDepth ? .depth32Float : .bgra8Unorm
let cvPixelFormat = isDepth ? kCVPixelFormatType_DepthFloat32 : kCVPixelFormatType_32BGRA
// let pixelFormat: MTLPixelFormat = isDepth ? .depth32Float : .bgra8Unorm
// let cvPixelFormat = isDepth ? kCVPixelFormatType_DepthFloat32 : kCVPixelFormatType_32BGRA
if(CVPixelBufferCreate(kCFAllocatorDefault, Int(width), Int(height),
kCVPixelFormatType_32BGRA, pixelBufferAttrs, &pixelBuffer) != kCVReturnSuccess) {