Post

Replies

Boosts

Views

Activity

Comment on MTLTexture streaming to app directory
Yes, essentially mmap, but rather than creating and drawing to the textures on every frame, I'd instead keep one texture in memory and have multiple pointers to the bitmap data. On each frame, I'd draw to that one texture in a loop over the various pointers. Would this be possible/efficient?
Topic: Graphics & Games SubTopic: General Tags:
Nov ’23
Comment on How to parse ascii characters in Swift?
What do you mean by it won't be a simple string? And if by parsing individual tag-like parts you mean the brush properties (i.e. spacing, hardness, etc.) then yes, that is what I'm trying to parse. I don't have much to work from in terms of the file format since there's very little documentation. I assumed that the value must come immediately after by creating a few test brushes with slightly different values and seeing how the string output changes. I also referred to this question which gives a very general overview of the format: https://community.adobe.com/t5/photoshop-ecosystem-discussions/reading-writing-and-previewing-abr-files-brushes-how/m-p/8536998.
Topic: App & System Services SubTopic: General Tags:
Feb ’22
Comment on How to parse ascii characters in Swift?
Here is the hex dump that I get. The Data() object comes from the "contentsOf(url)" function when trying to read a .abr brush file. 00446d74 72556e74 46235078 6c405400 00000000 00000000 00416e67 6c556e74 4623416e 67405180 00000000 00000000 00526e64 6e556e74 46235072 63404400 00000000 00000000 004e6d20 20544558 54000000 11004300 6800
Topic: App & System Services SubTopic: General Tags:
Feb ’22
Comment on MTLTexture streaming to app directory
Yes, essentially mmap, but rather than creating and drawing to the textures on every frame, I'd instead keep one texture in memory and have multiple pointers to the bitmap data. On each frame, I'd draw to that one texture in a loop over the various pointers. Would this be possible/efficient?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Comment on Render MTKView with different Colorspace
I'm not seeing this property on MTKView, is it for some reason not available when subclassing? So far I've only seen "(self.layer as? CAMetalLayer)?.colorspace" but that doesn't work when setting it to grayscale, and when using CMYK it turns everything to black/white.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on How to parse ascii characters in Swift?
What do you mean by it won't be a simple string? And if by parsing individual tag-like parts you mean the brush properties (i.e. spacing, hardness, etc.) then yes, that is what I'm trying to parse. I don't have much to work from in terms of the file format since there's very little documentation. I assumed that the value must come immediately after by creating a few test brushes with slightly different values and seeing how the string output changes. I also referred to this question which gives a very general overview of the format: https://community.adobe.com/t5/photoshop-ecosystem-discussions/reading-writing-and-previewing-abr-files-brushes-how/m-p/8536998.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How to parse ascii characters in Swift?
Here is the hex dump that I get. The Data() object comes from the "contentsOf(url)" function when trying to read a .abr brush file. 00446d74 72556e74 46235078 6c405400 00000000 00000000 00416e67 6c556e74 4623416e 67405180 00000000 00000000 00526e64 6e556e74 46235072 63404400 00000000 00000000 004e6d20 20544558 54000000 11004300 6800
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22