File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
include/nbl/video/utilities Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,14 @@ class NBL_API IGPUVirtualTexture final : public asset::IVirtualTexture<IGPUImage
4141 {
4242 core::smart_refctd_ptr<IGPUImage> gpuImage;
4343 {
44- auto cpuImageParams = _cpuimg->getCreationParameters ();
44+ IGPUImage::SCreationParams cpuImageParams;
45+ cpuImageParams = _cpuimg->getCreationParameters ();
4546 cpuImageParams.initialLayout = asset::IImage::EL_TRANSFER_DST_OPTIMAL;
4647
4748 // TODO: Look at issue #167 on Nabla repo, at some point
4849 IGPUBuffer::SCreationParams bufferCreationParams = {};
4950 bufferCreationParams.size = _cpuimg->getBuffer ()->getSize ();
50- auto gpuTexelBuffer = logicalDevice->createBuffer (bufferCreationParams);
51+ auto gpuTexelBuffer = logicalDevice->createBuffer (std::move ( bufferCreationParams) );
5152 auto mreqs = gpuTexelBuffer->getMemoryReqs ();
5253 mreqs.memoryTypeBits &= logicalDevice->getPhysicalDevice ()->getDeviceLocalMemoryTypeBits ();
5354 auto gpubufMem = logicalDevice->allocate (mreqs, gpuTexelBuffer.get ());
You can’t perform that action at this time.
0 commit comments