}
// resources
- std::vector<Vulkan::TextureRef> mTextures;
+ std::vector<Vulkan::RefCountedTexture> mTextures;
std::vector<Vulkan::RefCountedShader> mShaders;
std::vector<Vulkan::RefCountedBuffer> mBuffers;
return true;
}
- Vulkan::TextureRef mTexture;
+ Vulkan::RefCountedTexture mTexture;
VulkanAPI::TextureFactory& mTextureFactory;
Vulkan::Graphics& mGraphics;
};
Texture::~Texture() = default;
-Vulkan::TextureRef Texture::GetTextureRef() const
+Vulkan::RefCountedTexture Texture::GetTextureRef() const
{
return mImpl->mTexture;
}
bool Initialise();
- Vulkan::TextureRef GetTextureRef() const;
+ Vulkan::RefCountedTexture GetTextureRef() const;
private:
struct Impl;
*
*/
-TextureRef Texture::New( Graphics& graphics, uint32_t width, uint32_t height, vk::Format format )
+RefCountedTexture Texture::New( Graphics& graphics, uint32_t width, uint32_t height, vk::Format format )
{
- auto result = TextureRef( new Texture( graphics, width, height, format ));
+ auto result = RefCountedTexture( new Texture( graphics, width, height, format ));
if( !result->mImpl->Initialise() )
{
result.Reset();
std::unique_ptr<Impl> mImpl;
};
-using TextureRef = Handle<Texture>;
}
} // namespace Graphics
} // namespace Dali
}
RefCountedPipeline create_pipeline(Dali::Graphics::Vulkan::Graphics &graphics,
- Dali::Graphics::Vulkan::RefCountedShader vertexShader,
- Dali::Graphics::Vulkan::RefCountedShader fragmentShader)
+ Dali::Graphics::Vulkan::RefCountedShader vertexShader,
+ Dali::Graphics::Vulkan::RefCountedShader fragmentShader)
{
using namespace Dali::Graphics::Vulkan;
auto pipelineInfo = vk::GraphicsPipelineCreateInfo{};
using RefCountedSwapchain = Handle<class Swapchain>;
using RefCountedSurface = Handle<class Surface>;
using RefCountedSampler = Handle<class Sampler>;
+using RefCountedTexture = Handle<class Texture>;
/*
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wframe-larger-than="