3700 FPS here we go

This commit is contained in:
Dynamitos committed 2021-04-25 23:43:40 +02:00
1 parent 312ae2af9a
commit 4a078bd24c
35 files changed
+160 -73

No files matched your search

@@ -73,7 +73,7 @@ public:
inline bool isCurrentlyBound() const
{
return currentlyBound;
return currentlyBound != nullptr;
}
inline bool isCurrentlyInUse() const
{
@@ -90,8 +90,8 @@ public:
virtual uint32 getSetIndex() const;
private:
Array<VkDescriptorImageInfo> imageInfos;
Array<VkDescriptorBufferInfo> bufferInfos;
List<VkDescriptorImageInfo> imageInfos;
List<VkDescriptorBufferInfo> bufferInfos;
Array<VkWriteDescriptorSet> writeDescriptors;
// contains the previously bound resources at every binding
// since the layout is fixed, trying to bind a texture to a buffer
@@ -100,7 +100,7 @@ private:
VkDescriptorSet setHandle[Gfx::numFramesBuffered];
PGraphics graphics;
PDescriptorAllocator owner;
bool currentlyBound;
PCmdBuffer currentlyBound;
bool currentlyInUse;
friend class DescriptorAllocator;
friend class CmdBuffer;