55 device.destroyImage(
image);
60 vk::MemoryPropertyFlags memoryProperty, vk::CommandPool & commandPool, vk::ImageLayout finalLayout, vk::ImageAspectFlags imageAspect = vk::ImageAspectFlagBits::eColor) {
61 createImage(context->
device, context->
physicalDevice, renderingExtent.width, renderingExtent.height, format,
62 vk::ImageTiling::eOptimal, imageUsage, memoryProperty,
image,
memory);
64 transitionImageLayout(context, commandPool,
image, format, vk::ImageLayout::eUndefined, finalLayout);
82 virtual void updateBuffer(uint32_t currentImage,
bool initAll, std::span<InputProvider::StreamFrameInfo> infos,
int view);
84 virtual void recordCommandBuffer(vk::CommandBuffer& commandBuffer,
int i, std::span<InputProvider::StreamFrameInfo> frameInfos,
int view);
Class that contains helper functions for Vulkan.
file that conthains a class that manages the pipeline for the blending
Contains the class that manages the warping pipeline.
Class that represents SPIR-V shader.
class that manages tasks related to Vulkan context (Vulkan Instance, Vulkan Physical device,...
vk::PhysicalDevice physicalDevice
An abstract class that contains a common base of code for the class that inherit from it.
virtual vk::Image getImageToBlit(int imageIndex)=0
vk::Extent2D renderingExtent
void createDepthResources()
void createCommandPoolForBuffer()
std::vector< ImageStruct > depthImages
vk::CommandPool commandPoolBuffer
virtual void init(InputProvider *inputProvider)
virtual std::vector< vk::Format > getSupportedDepthFormats() const =0
virtual bool isInitialized()
virtual void recordCommandBuffer(vk::CommandBuffer &commandBuffer, int i, std::span< InputProvider::StreamFrameInfo > frameInfos, int view)
virtual void updateBuffer(uint32_t currentImage, bool initAll, std::span< InputProvider::StreamFrameInfo > infos, int view)
Class that manages the classes related to Vulkan code and act as a wrapper around them.
file that contains the common include for the Vulkan part
Struct that aims to facilitate the creation of image, their view and memory.
void destroy(vk::Device &device)
void createStruct(VulkanContext *context, vk::Extent2D &renderingExtent, vk::Format format, vk::ImageUsageFlags imageUsage, vk::MemoryPropertyFlags memoryProperty, vk::CommandPool &commandPool, vk::ImageLayout finalLayout, vk::ImageAspectFlags imageAspect=vk::ImageAspectFlagBits::eColor)