Refactor barrier usage.

This commit is contained in:
Skyth
2024-10-07 23:35:32 +03:00
parent b876766848
commit c2ca5dcdad
2 changed files with 55 additions and 30 deletions
+2
View File
@@ -97,6 +97,7 @@ struct GuestTexture : GuestResource
RenderFormat format = RenderFormat::UNKNOWN;
void* mappedMemory = nullptr;
uint32_t descriptorIndex = 0;
bool pendingBarrier = true;
};
struct GuestLockedRect
@@ -147,6 +148,7 @@ struct GuestSurface : GuestResource
uint32_t height = 0;
RenderFormat format = RenderFormat::UNKNOWN;
ankerl::unordered_dense::map<const RenderTexture*, std::unique_ptr<RenderFramebuffer>> framebuffers;
bool pendingBarrier = true;
};
enum GuestDeclType