This PR fixes the issue of discarding some content on canvas by opt for cpuCacheModeWriteCombined in buffer creation and recreate buffer for photo vertex buffer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/dscyrescotti/Memola/pull/47
**Author:** [@dscyrescotti](https://github.com/dscyrescotti)
**Created:** 6/19/2024
**Status:** ✅ Merged
**Merged:** 6/19/2024
**Merged by:** [@dscyrescotti](https://github.com/dscyrescotti)
**Base:** `main` ← **Head:** `feature/photo-render-pass`
---
### 📝 Commits (1)
- [`d3b9328`](https://github.com/dscyrescotti/Memola/commit/d3b9328d8cf8b1080caf1269f9a2966e3bd227a7) bug: fix content disappearing in subsequent render
### 📊 Changes
**3 files changed** (+15 additions, -14 deletions)
<details>
<summary>View changed files</summary>
📝 `Memola/Canvas/Elements/Photo/Photo.swift` (+11 -10)
📝 `Memola/Canvas/RenderPasses/EraserRenderPass.swift` (+2 -2)
📝 `Memola/Canvas/RenderPasses/StrokeRenderPass.swift` (+2 -2)
</details>
### 📄 Description
### Description
This PR fixes the issue of discarding some content on canvas by opt for `cpuCacheModeWriteCombined` in buffer creation and recreate buffer for photo vertex buffer.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/dscyrescotti/Memola/pull/47
Author: @dscyrescotti
Created: 6/19/2024
Status: ✅ Merged
Merged: 6/19/2024
Merged by: @dscyrescotti
Base:
main← Head:feature/photo-render-pass📝 Commits (1)
d3b9328bug: fix content disappearing in subsequent render📊 Changes
3 files changed (+15 additions, -14 deletions)
View changed files
📝
Memola/Canvas/Elements/Photo/Photo.swift(+11 -10)📝
Memola/Canvas/RenderPasses/EraserRenderPass.swift(+2 -2)📝
Memola/Canvas/RenderPasses/StrokeRenderPass.swift(+2 -2)📄 Description
Description
This PR fixes the issue of discarding some content on canvas by opt for
cpuCacheModeWriteCombinedin buffer creation and recreate buffer for photo vertex buffer.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.