this.forceField = new Float32Array(2000 * 4); this.forceField.fill(0); const forceimage = new ImageAsset(); forceimage.reset({ _data: this.forceField, width: 2000, height: 1, format: Texture2D.PixelFormat.RGBA32F, _compressed: false }); this.forceTex = new Texture2D(); this.forceTex.reset({ width: 2000, height: 1 }); this.forceTex.setFilters(Texture2D.Filter.NONE, Texture2D.Filter.NONE); this.forceTex.image = forceimage;
_validateTextureView:557: failed assertion `Texture View Validation
texture usage (0x03) doesn’t specify MTLTextureUsagePixelFormatView (0x10)
’
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
_validateTextureView:557: failed assertion `Texture View Validation
texture usage (0x03) doesn’t specify MTLTextureUsagePixelFormatView (0x10)
给点反馈啊谢谢