2D Graphics

RSS for tag

Discuss integrating two-dimensional graphics into your app.

Posts under 2D Graphics tag

3 Posts
Sort by:
Post not yet marked as solved
1 Replies
423 Views
For better memory usage when working with MTLTextures (editing + displaying in render passes, compute shaders, etc.) is it possible to save the texture to the app's Documents folder, and then use an UnsafeMutablePointer to access/modify the contents of the texture before displaying in a render pass? And would this be performant (i.e 60fps)? That way the texture won't be directly in memory all the time, but the contents can still be edited and displayed when needed.
Posted
by yyjhuj.
Last updated
.
Post not yet marked as solved
0 Replies
646 Views
I have a SwiftUI view which consists on a horizontal scroll view with some pages inside. The elements of the pages project shadows. I noticed that when scrolling, as elements stop being visible, the shadow gets removed abruptly. The shadow itself is visible when it gets removed and it creates an unpleasant effect. I tried adding a transparent background to the element with the shadow that extends its frame to see if that way the shadow would be retained longer but it didn't work. Is there any workaround to make this behave the way I would like? Thanks in advance It seems it's not possible to post videos on the dev forums but I captured 3 frames of it showcasing the issue.
Posted
by 0xpablo.
Last updated
.
Post not yet marked as solved
0 Replies
571 Views
I see that pstopdf and the PSNormalizer framework have been removed from Sonoma. A sad day, given the importance of PostScript in making the Mac a success.
Posted
by benwiggy.
Last updated
.