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
41
41
{
42
42
core::smart_refctd_ptr<IGPUImage> gpuImage;
43
43
{
44
- auto cpuImageParams = _cpuimg->getCreationParameters ();
44
+ IGPUImage::SCreationParams cpuImageParams;
45
+ cpuImageParams = _cpuimg->getCreationParameters ();
45
46
cpuImageParams.initialLayout = asset::IImage::EL_TRANSFER_DST_OPTIMAL;
46
47
47
48
// TODO: Look at issue #167 on Nabla repo, at some point
48
49
IGPUBuffer::SCreationParams bufferCreationParams = {};
49
50
bufferCreationParams.size = _cpuimg->getBuffer ()->getSize ();
50
- auto gpuTexelBuffer = logicalDevice->createBuffer (bufferCreationParams);
51
+ auto gpuTexelBuffer = logicalDevice->createBuffer (std::move ( bufferCreationParams) );
51
52
auto mreqs = gpuTexelBuffer->getMemoryReqs ();
52
53
mreqs.memoryTypeBits &= logicalDevice->getPhysicalDevice ()->getDeviceLocalMemoryTypeBits ();
53
54
auto gpubufMem = logicalDevice->allocate (mreqs, gpuTexelBuffer.get ());
You can’t perform that action at this time.
0 commit comments