Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/gfx/vulkan/src/gfx_vulkan_texture.hpp
redstrate d999485325 Keep track of current texture layouts
* Fixes a few compute pipeline validation errors
2021-06-01 10:16:59 -04:00

23 lines
450 B
C++
Executable file

#pragma once
#include <vulkan/vulkan.h>
#include "gfx_texture.hpp"
class GFXVulkanTexture : public GFXTexture {
public:
VkImage handle;
VkDeviceMemory memory;
VkImageView view;
VkSampler sampler;
int width, height;
VkFormat format;
VkImageLayout layout = VK_IMAGE_LAYOUT_UNDEFINED;
VkImageLayout current_layout = VK_IMAGE_LAYOUT_UNDEFINED;
VkImageAspectFlagBits aspect;
VkImageSubresourceRange range;
GFXTextureUsage usage;
};