Struct Context
Defined in File utils.h
Struct Documentation
-
struct Context
Public Members
-
VkInstance instance
-
VkSurfaceKHR surface
-
VkPhysicalDevice physicalDevice = VK_NULL_HANDLE
-
VkDevice device
-
VkQueue graphicsQueue
-
VkQueue presentQueue
-
VkSwapchainKHR vkSwapChain
-
std::vector<VkImageView> swapChainImageViews
-
std::vector<VkFramebuffer> swapChainFramebuffers
-
std::vector<VkImage> swapChainImages
-
VkFormat swapChainImageFormat
-
VkExtent2D swapChainExtent
-
VkImage depthImage
-
VkDeviceMemory depthImageMemory
-
VkImageView depthImageView
-
VkImage colorImage
-
VkDeviceMemory colorImageMemory
-
VkImageView colorImageView
-
VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT
-
VkRenderPass renderPass
-
VkBuffer vertexBuffer = VK_NULL_HANDLE
-
VkDeviceMemory vertexBufferMemory = VK_NULL_HANDLE
-
VkBuffer indexBuffer = VK_NULL_HANDLE
-
VkDeviceMemory indexBufferMemory = VK_NULL_HANDLE
-
std::vector<Vertex> allVertices
-
std::vector<uint32_t> allIndices
-
std::vector<prism::PGC::Mesh> meshes
-
std::vector<uint32_t> freeMeshIndices
-
bool meshBuffersDirty = false
-
VkDescriptorSetLayout descriptorSetLayout
-
VkPipelineLayout pipelineLayout
-
VkPipeline graphicsPipeline
-
VkCommandPool commandPool
-
std::vector<VkCommandBuffer> commandBuffers
-
std::vector<UniformBuffers> uniformBuffers
-
std::vector<StorageBuffers> storageBuffers
-
std::vector<VkSemaphore> imageAvailableSemaphores
-
std::vector<VkSemaphore> renderFinishedSemaphores
-
std::vector<VkFence> inFlightFences
-
uint32_t currentFrame = 0
-
uint32_t imageIndex
-
bool wasRenderingActive = true
-
VkDescriptorPool descriptorPool
-
VkDescriptorSet textureDescriptorSet = VK_NULL_HANDLE
-
VkDescriptorSetLayout textureDescriptorSetLayout = VK_NULL_HANDLE
-
VkDescriptorPool textureDescriptorPool
-
CameraData cameraData
-
std::vector<VkDescriptorSet> descriptorSets
-
const int MAX_FRAMES_IN_FLIGHT = 2
-
const std::vector<const char*> validationLayers = {"VK_LAYER_KHRONOS_validation"}
-
const std::vector<const char*> deviceExtensions = {VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME}
-
size_t dynamicAlignment = 0
-
bool enableValidationLayers = false
-
VkInstance instance