Józef Kucia : vkd3d: Allocate memory for resource if heap memory cannot be used.