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

@@ -265,6 +265,18 @@ UniformBuffer::~UniformBuffer()
{
}
bool UniformBuffer::updateContents(const BulkResourceData &resourceData)
{
if(!Gfx::UniformBuffer::updateContents(resourceData))
{
// no update was performed, skip
return false;
}
void* data = lock();
std::memcpy(data, resourceData.data, resourceData.size);
unlock();
return true;
}
void* UniformBuffer::lock(bool bWriteOnly)
{
if(dedicatedStagingBuffer != nullptr)