File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class NBL_API CSkinInstanceCache final : public ISkinInstanceCache
32
32
video::IGPUBuffer::SCreationParams creationParams = {};
33
33
creationParams.size = size;
34
34
creationParams.usage = asset::IBuffer::EUF_STORAGE_BUFFER_BIT;
35
- auto buffer = params.device ->createBuffer (creationParams);
35
+ auto buffer = params.device ->createBuffer (std::move ( creationParams) );
36
36
auto mreqs = buffer->getMemoryReqs ();
37
37
mreqs.memoryTypeBits &= params.device ->getPhysicalDevice ()->getDeviceLocalMemoryTypeBits ();
38
38
auto gpubufMem = params.device ->allocate (mreqs, buffer.get ());
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class NBL_API CPropertyPool final : public IPropertyPool
56
56
blocks[i].offset = 0ull ;
57
57
blocks[i].size = capacity * PropertySizes[i];
58
58
params.size = blocks[i].size ;
59
- blocks[i].buffer = device->createBuffer (params);
59
+ blocks[i].buffer = device->createBuffer (std::move ( params) );
60
60
auto bufferReqs = blocks[i].buffer ->getMemoryReqs ();
61
61
bufferReqs.memoryTypeBits &= device->getPhysicalDevice ()->getDeviceLocalMemoryTypeBits ();
62
62
auto gpubufferMem = device->allocate (bufferReqs, blocks[i].buffer .get ());
You can’t perform that action at this time.
0 commit comments