Changes to the inharitance of some classes
This commit is contained in:
@@ -9,7 +9,7 @@ namespace openVulkanoCpp
|
||||
/**
|
||||
* \brief A not managed buffer. This should be used rarely.
|
||||
*/
|
||||
struct Buffer : virtual public ICloseable
|
||||
struct Buffer : public ICloseable
|
||||
{
|
||||
vk::Device device;
|
||||
vk::DeviceMemory memory;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace openVulkanoCpp
|
||||
{
|
||||
class Device;
|
||||
|
||||
class Context final : virtual public ICloseable
|
||||
class Context final : public ICloseable
|
||||
{
|
||||
bool enableValidationLayer, initialized;
|
||||
std::set<std::string> requiredExtensions;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace openVulkanoCpp
|
||||
{
|
||||
namespace Vulkan
|
||||
{
|
||||
class Device : virtual public ICloseable
|
||||
class Device : public ICloseable
|
||||
{
|
||||
public:
|
||||
vk::PhysicalDevice physicalDevice;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace openVulkanoCpp::Vulkan
|
||||
virtual vk::ImageView GetView() = 0;
|
||||
};
|
||||
|
||||
struct Image : public Buffer, virtual public IImage
|
||||
struct Image : public Buffer, public IImage
|
||||
{
|
||||
vk::Image image;
|
||||
vk::Extent3D extent;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace openVulkanoCpp::Vulkan
|
||||
{
|
||||
class FrameBuffer;
|
||||
|
||||
class RenderPass : virtual public ICloseable
|
||||
class RenderPass : public ICloseable
|
||||
{ //TODO allow to control the render rect size
|
||||
protected:
|
||||
vk::Device m_device;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace openVulkanoCpp
|
||||
class VulkanGeometry;
|
||||
class VulkanTexture;
|
||||
|
||||
class ResourceManager : virtual public ICloseable, virtual public IShaderOwner
|
||||
class ResourceManager : public ICloseable, public IShaderOwner
|
||||
{
|
||||
Context* context;
|
||||
vk::Device device = nullptr;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace openVulkanoCpp
|
||||
{
|
||||
namespace Vulkan
|
||||
{
|
||||
struct SwapChainImage : virtual public IImage
|
||||
struct SwapChainImage : public IImage
|
||||
{
|
||||
vk::Image image;
|
||||
vk::ImageView view;
|
||||
|
||||
Reference in New Issue
Block a user