Program Listing for File texture.h

Return to documentation for file (PrismEngine/src/texture.h)

#pragma once
#include "vulkan/vulkan.h"
#include <string>


namespace prism {
    typedef uint32_t Texture;
    const Texture INVALID_TEXTURE = 0;


    namespace PGC {

        struct Texture
        {
            std::string path;
            uint32_t mipLevels = 1;

            VkImage image;
            VkImageView imageView;
            VkDeviceMemory imageMemory;
            VkSampler sampler;

            int width, height, channels = 0;

            uint32_t bindlessIndex = UINT32_MAX;
        };
    }
}