Vulkan-Hpp
Engine Class Reference

Public Member Functions

 Engine (const vk::su::WindowData &window)
 
void createDeviceAndSwapChain (const vk::su::WindowData &window)
 
void initialize ()
 
void beginFrame (vk::Extent2D extent)
 
void endFrame ()
 

Public Attributes

vk::SharedSwapchainKHR swapChain
 
vk::PhysicalDevice physicalDevice
 
vk::SharedDevice device
 
vk::SharedInstance instance
 
vk::SharedDebugUtilsMessengerEXT debugUtilsMessenger
 
std::vector< vk::SharedImageView > imageViews
 
std::vector< vk::SharedImage > images
 
uint32_t currentBuffer = 0
 
vk::SharedSemaphore imageAcquiredSemaphore
 
vk::SharedDeviceMemory depthMemory
 
vk::SharedImage depthImage
 
vk::SharedImageView depthImageView
 
vk::Format depthFormat
 
vk::SharedCommandPool commandPool
 
vk::SharedCommandBuffer commandBuffer
 
vk::SharedQueue graphicsQueue
 
vk::SharedQueue presentQueue
 
vk::SharedPipelineCache pipelineCache
 
vk::SharedPipelineLayout pipelineLayout
 
vk::SharedRenderPass renderPass
 
vk::SharedPipeline graphicsPipeline
 
vk::SharedDescriptorPool descriptorPool
 
vk::DescriptorSetAllocateInfo descriptorSetAllocateInfo
 
vk::SharedDescriptorSet descriptorSet
 
vk::SharedDescriptorSetLayout descriptorSetLayout
 
vk::SharedShaderModule vertexShaderModule
 
vk::SharedShaderModule fragmentShaderModule
 
std::vector< vk::SharedFramebuffer > framebuffers
 
vk::SharedFence drawFence
 

Detailed Description

Definition at line 67 of file SharedHandles.cpp.

Constructor & Destructor Documentation

◆ Engine()

Engine::Engine ( const vk::su::WindowData window)
inline

Definition at line 70 of file SharedHandles.cpp.

Member Function Documentation

◆ beginFrame()

void Engine::beginFrame ( vk::Extent2D  extent)
inline

Definition at line 197 of file SharedHandles.cpp.

◆ createDeviceAndSwapChain()

void Engine::createDeviceAndSwapChain ( const vk::su::WindowData window)
inline

Definition at line 83 of file SharedHandles.cpp.

◆ endFrame()

void Engine::endFrame ( )
inline

Definition at line 213 of file SharedHandles.cpp.

◆ initialize()

void Engine::initialize ( )
inline

Definition at line 147 of file SharedHandles.cpp.

Member Data Documentation

◆ commandBuffer

vk::SharedCommandBuffer Engine::commandBuffer

Definition at line 263 of file SharedHandles.cpp.

◆ commandPool

vk::SharedCommandPool Engine::commandPool

Definition at line 262 of file SharedHandles.cpp.

◆ currentBuffer

uint32_t Engine::currentBuffer = 0

Definition at line 253 of file SharedHandles.cpp.

◆ debugUtilsMessenger

vk::SharedDebugUtilsMessengerEXT Engine::debugUtilsMessenger

Definition at line 248 of file SharedHandles.cpp.

◆ depthFormat

vk::Format Engine::depthFormat

Definition at line 260 of file SharedHandles.cpp.

◆ depthImage

vk::SharedImage Engine::depthImage

Definition at line 258 of file SharedHandles.cpp.

◆ depthImageView

vk::SharedImageView Engine::depthImageView

Definition at line 259 of file SharedHandles.cpp.

◆ depthMemory

vk::SharedDeviceMemory Engine::depthMemory

Definition at line 257 of file SharedHandles.cpp.

◆ descriptorPool

vk::SharedDescriptorPool Engine::descriptorPool

Definition at line 272 of file SharedHandles.cpp.

◆ descriptorSet

vk::SharedDescriptorSet Engine::descriptorSet

Definition at line 274 of file SharedHandles.cpp.

◆ descriptorSetAllocateInfo

vk::DescriptorSetAllocateInfo Engine::descriptorSetAllocateInfo

Definition at line 273 of file SharedHandles.cpp.

◆ descriptorSetLayout

vk::SharedDescriptorSetLayout Engine::descriptorSetLayout

Definition at line 275 of file SharedHandles.cpp.

◆ device

vk::SharedDevice Engine::device

Definition at line 246 of file SharedHandles.cpp.

◆ drawFence

vk::SharedFence Engine::drawFence

Definition at line 282 of file SharedHandles.cpp.

◆ fragmentShaderModule

vk::SharedShaderModule Engine::fragmentShaderModule

Definition at line 278 of file SharedHandles.cpp.

◆ framebuffers

std::vector<vk::SharedFramebuffer> Engine::framebuffers

Definition at line 280 of file SharedHandles.cpp.

◆ graphicsPipeline

vk::SharedPipeline Engine::graphicsPipeline

Definition at line 271 of file SharedHandles.cpp.

◆ graphicsQueue

vk::SharedQueue Engine::graphicsQueue

Definition at line 265 of file SharedHandles.cpp.

◆ imageAcquiredSemaphore

vk::SharedSemaphore Engine::imageAcquiredSemaphore

Definition at line 254 of file SharedHandles.cpp.

◆ images

std::vector<vk::SharedImage> Engine::images

Definition at line 251 of file SharedHandles.cpp.

◆ imageViews

std::vector<vk::SharedImageView> Engine::imageViews

Definition at line 250 of file SharedHandles.cpp.

◆ instance

vk::SharedInstance Engine::instance

Definition at line 247 of file SharedHandles.cpp.

◆ physicalDevice

vk::PhysicalDevice Engine::physicalDevice

Definition at line 245 of file SharedHandles.cpp.

◆ pipelineCache

vk::SharedPipelineCache Engine::pipelineCache

Definition at line 268 of file SharedHandles.cpp.

◆ pipelineLayout

vk::SharedPipelineLayout Engine::pipelineLayout

Definition at line 269 of file SharedHandles.cpp.

◆ presentQueue

vk::SharedQueue Engine::presentQueue

Definition at line 266 of file SharedHandles.cpp.

◆ renderPass

vk::SharedRenderPass Engine::renderPass

Definition at line 270 of file SharedHandles.cpp.

◆ swapChain

vk::SharedSwapchainKHR Engine::swapChain

Definition at line 244 of file SharedHandles.cpp.

◆ vertexShaderModule

vk::SharedShaderModule Engine::vertexShaderModule

Definition at line 277 of file SharedHandles.cpp.


The documentation for this class was generated from the following file: