|
luna engine
software engine
|
texture implementation in vulkan. More...
#include <vulkanTexture.h>


Public Member Functions | |
| vulkanTexture (const std::string &filePath) | |
| vulkanTexture (const uint64_t &handle, const glm::vec2 &dimensions) | |
| virtual | ~vulkanTexture () |
| virtual uint32_t | getWidth () const override |
| virtual uint32_t | getHeight () const override |
| virtual const std::string & | getPath () const override |
| virtual void | setData (void *data, uint32_t size) override |
| virtual void | bind (uint32_t slot=0) const override |
| virtual bool | isLoaded () const override |
Public Member Functions inherited from luna::renderer::texture | |
| virtual | ~texture ()=default |
| virtual uint32_t | getWidth () const =0 |
| virtual uint32_t | getHeight () const =0 |
| virtual const std::string & | getPath () const =0 |
| virtual void | setData (void *data, uint32_t size)=0 |
| virtual void | bind (uint32_t slot=0) const =0 |
| virtual bool | isLoaded () const =0 |
| void | setDestroy (const bool &destroy) |
| void | setUv (const glm::vec2 &_uvStart, const glm::vec2 &_uvEnd) |
| std::vector< glm::vec2 > | getUv () |
| uint64_t | handle () |
Protected Attributes | |
| VkBuffer | buffer = VK_NULL_HANDLE |
| VkImage | imageHandle = VK_NULL_HANDLE |
| VkImageView | imageViewHandle = VK_NULL_HANDLE |
Protected Attributes inherited from luna::renderer::texture | |
| bool | destroy = true |
| uint64_t | _handle |
| void * | data |
| uint32_t | width |
| uint32_t | height |
| glm::vec2 | uvStart = {0.0f,0.0f} |
| glm::vec2 | uvEnd = { 1.0f,1.0f } |
Additional Inherited Members | |
Static Public Member Functions inherited from luna::renderer::texture | |
| static ref< texture > | create (const std::string &filePath) |
| static ref< texture > | create (const uint64_t &handle, const glm::vec2 &dimensions) |
texture implementation in vulkan.
| luna::vulkan::vulkanTexture::vulkanTexture | ( | const std::string & | filePath | ) |
| luna::vulkan::vulkanTexture::vulkanTexture | ( | const uint64_t & | handle, |
| const glm::vec2 & | dimensions | ||
| ) |
|
virtual |
|
overridevirtual |
Implements luna::renderer::texture.
|
overridevirtual |
Implements luna::renderer::texture.
|
overridevirtual |
Implements luna::renderer::texture.
|
overridevirtual |
Implements luna::renderer::texture.
|
overridevirtual |
Implements luna::renderer::texture.
|
overridevirtual |
Implements luna::renderer::texture.
|
protected |
|
protected |
|
protected |