Home Forums GAMES104 现代游戏引擎:从入门到实践 Pilot运行报错,VK_ERROR_OUT_OF_DEVICE_MEMORY

Viewing 0 reply threads
  • Author
    Posts
    • #11505 Score: 0
      charles
      Participant

      使用VS编译后,运行报错。
      运行时异常:failed to allocate image memory!
      调用栈:

      
      	PilotEditor.exe!Pilot::PVulkanUtil::createImage(VkPhysicalDevice_T * physical_device, VkDevice_T * device, unsigned int image_width, unsigned int image_height, VkFormat format, VkImageTiling image_tiling, unsigned int image_usage_flags, unsigned int memory_property_flags, VkImage_T * & image, VkDeviceMemory_T * & memory, unsigned int image_create_flags, unsigned int array_layers, unsigned int miplevels) 行 146	C++
       	PilotEditor.exe!Pilot::PPointLightShadowPass::setupAttachments() 行 86	C++
       	PilotEditor.exe!Pilot::PPointLightShadowPass::initialize() 行 18	C++
       	PilotEditor.exe!Pilot::PVulkanManager::initializeRenderPass() 行 15	C++
       	PilotEditor.exe!Pilot::PVulkanManager::initialize(GLFWwindow * window, Pilot::Scene & scene, Pilot::PilotRenderer * pilot_renderer) 行 24	C++
       	PilotEditor.exe!Pilot::SurfaceRHI::initialize(Pilot::SurfaceIO * io, const Pilot::FrameBuffer * framebuffer) 行 28	C++
       	PilotEditor.exe!Pilot::Surface::initialize(const Pilot::FrameBuffer * framebuffer) 行 60	C++
       	PilotEditor.exe!Pilot::PilotRenderer::initialize() 行 9	C++
       	PilotEditor.exe!Pilot::PilotEngine::startEngine(const Pilot::EngineInitParams & param) 行 65	C++
       	PilotEditor.exe!main(int argc, char * * argv) 行 22	C++
      

      其他有用信息:
      vkAllocateMemory申请内存失败,返回:VK_ERROR_OUT_OF_DEVICE_MEMORY

      看起来是内存不足了,但是看内存占用并不高。求助,怎样调整内存限制呢?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.