@@ -20,7 +20,7 @@ class NBL_API IGPUVirtualTexture final : public asset::IVirtualTexture<IGPUImage
20
20
static inline core::smart_refctd_ptr<IGPUCommandBuffer> createTransferCommandBuffer (ILogicalDevice* logicalDevice, IGPUQueue* queue)
21
21
{
22
22
const auto queueFamilyIndex = queue->getFamilyIndex ();
23
- assert (logicalDevice->getPhysicalDevice ()->getQueueFamilyProperties ().begin ()[queueFamilyIndex].queueFlags &IPhysicalDevice::EQF_TRANSFER_BIT);
23
+ assert (( logicalDevice->getPhysicalDevice ()->getQueueFamilyProperties ().begin ()[queueFamilyIndex].queueFlags &IPhysicalDevice::EQF_TRANSFER_BIT). value );
24
24
// now copy from CPU counterpart resources that can be shared (i.e. just copy state) between CPU and GPU
25
25
// and convert to GPU those which can't be "shared": page table and VT resident storages along with their images and views
26
26
core::smart_refctd_ptr<IGPUCommandBuffer> gpuCommandBuffer;
@@ -166,7 +166,8 @@ class NBL_API IGPUVirtualTexture final : public asset::IVirtualTexture<IGPUImage
166
166
params.flags = static_cast <asset::IImage::E_CREATE_FLAGS>(0 );
167
167
// TODO: final layout should be readonly (if there's transfer necessary, then we start in transfer dst) and usage is shader sampled texture
168
168
169
- image = m_logicalDevice->createDeviceLocalGPUImageOnDedMem (std::move (params));
169
+ image = m_logicalDevice->createImage (std::move (params));
170
+ m_logicalDevice->allocate (image->getMemoryReqs (), image.get ());
170
171
}
171
172
172
173
private:
@@ -316,7 +317,9 @@ class NBL_API IGPUVirtualTexture final : public asset::IVirtualTexture<IGPUImage
316
317
}
317
318
core::smart_refctd_ptr<IGPUImage> createPageTableImage (IGPUImage::SCreationParams&& _params) const override
318
319
{
319
- return m_logicalDevice->createDeviceLocalGPUImageOnDedMem (std::move (_params));
320
+ auto img = m_logicalDevice->createImage (std::move (_params));
321
+ m_logicalDevice->allocate (img->getMemoryReqs (), img.get ());
322
+ return img;
320
323
}
321
324
core::smart_refctd_ptr<IGPUSampler> createSampler (const asset::ISampler::SParams& _params) const override
322
325
{
0 commit comments