Experimental shared memory texture handling
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "IResourceManager.hpp"
|
||||
#include "Base/ITickable.hpp"
|
||||
#include "Base/ICloseable.hpp"
|
||||
#include "Scene/Scene.hpp"
|
||||
@@ -32,5 +33,7 @@ namespace OpenVulkano
|
||||
|
||||
virtual void SetActiveUi(Scene::UI::Ui* ui) = 0;
|
||||
virtual Scene::UI::Ui* GetActiveUi() = 0;
|
||||
|
||||
virtual IResourceManager* GetIResourceManager() = 0;
|
||||
};
|
||||
}
|
||||
|
||||
25
openVulkanoCpp/Base/Render/IResourceManager.hpp
Normal file
25
openVulkanoCpp/Base/Render/IResourceManager.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Base/Wrapper.hpp"
|
||||
#include "Math/Math.hpp"
|
||||
#include "Scene/DataFormat.hpp"
|
||||
|
||||
namespace OpenVulkano
|
||||
{
|
||||
namespace Scene
|
||||
{
|
||||
class Texture;
|
||||
}
|
||||
|
||||
class IResourceManager
|
||||
{
|
||||
public:
|
||||
[[nodiscard]] virtual Unique<Scene::Texture> CreateSharedMemoryTexture(const Math::Vector3ui& resolution, DataFormat format) = 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user