I also tried replaceRegion and blitEncoder copyFromTexture: toTexture: as well as managed texture with syncing, but the result is always the same - only the first 22 pixels get filled and the rest is transparent. SaveOutputRaw(desc, surfPtr, getFileName("IOSurfaceTestCreateRaw")) SaveOutputRaw(desc, outBuf2.data(), getFileName("IOSurfaceTestCreateTex")) Id surfaceTex = Īuto region = MTLRegionMake2D(0, 0, w, h) Īuto bufSize = TextureDescriptor.storageMode = MTLStorageModeShared Īuto device = MTLCreateSystemDefaultDevice() age = MTLTextureUsageShaderRead | MTLTextureUsageShaderWrite MTLTextureDescriptor *textureDescriptor = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:CGMTLBufferManager::getMTLPixelFormat( fmt ) Now I want to create a MTLTexture based on the iosurface:Īuto fmt = IOSurfaceGetPixelFormat( ioSurface ) Īuto h = IOSurfaceGetHeight( ioSurface ) Īuto rowbytes = IOSurfaceGetBytesPerRow( ioSurface ) SaveOutputRaw(desc, surfPtr, getFileName("IOSurfaceTestSurfaceRaw")) extract raw surface data and write it into a file Memcpy(, src->getRawPtr(), src->getSizeInBytes()) Īuto surfPtr = (uint8_t*) I tested that the pixels are properly written into the iosurface: IOSurface *oSurface = initWithProperties:nsprops] Īuto ioSurface = (IOSurfaceRef) oSurface NSDictionary *nsprops = ( _bridge NSDictionary * )properties Properties, kIOSurfaceBytesPerRow, CFNumberCreate( kCFAllocatorDefault, kCFNumberIntType, &trowbytes ) ) Properties, kIOSurfacePixelFormat, CFNumberCreate( kCFAllocatorDefault, kCFNumberIntType, &pixelFmt ) ) Properties, kIOSurfaceHeight, CFNumberCreate( kCFAllocatorDefault, kCFNumberIntType, &height ) ) Properties, kIOSurfaceWidth, CFNumberCreate( kCFAllocatorDefault, kCFNumberIntType, &width ) ) KCFAllocatorDefault, 0, &kCFTypeDictionaryKe圜allBacks, &kCFTypeDictionaryValueCallBacks ) Int trowbytes = static_cast( ueRowbytes() ) // returns proper rowbytes valueĬFMutableDictionaryRef properties = CFDictionar圜reateMutable( usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/ have this code to create an IOSurface from a bitmap image:Īuto src = loadSource32f() // rgba 32-bit float imageĬonst auto desc = src->getDescriptor() // metadata for that imageĪuto pixelFmt = CGMTLBufferManager::getCVPixelFormat( desc.channelBitDepth, desc.channelOrder ) // returns proper `RGfA` T20:15:09.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/.pid ended usr/local/mysql/bin/mysqld_safe: line 916: /usr/local/mysql/data/: Permission denied usr/local/mysql/bin/mysqld_safe: line 199: /usr/local/mysql/data/: Permission denied usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/: Permission denied T20:15:09.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data ~ % /usr/local/mysql/bin/mysqld_safe: line 653: /usr/local/mysql/data/: Permission denied Sudo: /usr/local/mysql/bin/rver: command not found And by reasonable I exclude keeping up with weekly upgrades or significant reconfigurations with each new OS.ĮRROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) a listing of what it takes to get mySQL working on my local computer (Big Sur) and some insight about whether this is a lost cause to reasonably maintain. There are problems with paths, the shell, and permissions. There are dozens of results returned by searches but so far none have worked. Getting mySQL running has taken the better part of two days without succeeding. The php and apache took a bit of fiddling but they are working fine though the warning that php will not be a part of future OS is a little concerning. Big Sur mySQL - php - apache simple low maintenance configuration needed Short version of my questions: what is the way forward for hobbiest-learners who want to use the triad of apache-php-mySQL to do a bit of web development?Īfter not touching my setup for a couple years and many OS upgrades I have set about getting the pieces back up and running together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |