start new chapter
This commit is contained in:
parent
f2af2a8ccf
commit
79a4fea655
2 changed files with 20 additions and 18 deletions
|
@ -119,7 +119,7 @@ initVulkan window = do
|
||||||
|
|
||||||
initScene
|
initScene
|
||||||
|
|
||||||
return $ EngineData
|
EngineData
|
||||||
window
|
window
|
||||||
dimensions
|
dimensions
|
||||||
vulkanPhysicalDevice
|
vulkanPhysicalDevice
|
||||||
|
@ -137,6 +137,7 @@ initVulkan window = do
|
||||||
frames
|
frames
|
||||||
descriptorSetLayout
|
descriptorSetLayout
|
||||||
descriptorPool
|
descriptorPool
|
||||||
|
<$> Vk.getPhysicalDeviceProperties vulkanPhysicalDevice
|
||||||
|
|
||||||
initScene :: (MonadReader ReadState m, MonadIO m) => m ()
|
initScene :: (MonadReader ReadState m, MonadIO m) => m ()
|
||||||
initScene = do
|
initScene = do
|
||||||
|
|
35
src/Types.hs
35
src/Types.hs
|
@ -24,23 +24,24 @@ data ShaderContainer = ShaderContainer
|
||||||
deriving (Show)
|
deriving (Show)
|
||||||
|
|
||||||
data EngineData = EngineData
|
data EngineData = EngineData
|
||||||
{ engineWindow :: SDL.Window
|
{ engineWindow :: SDL.Window
|
||||||
, engineWindowDimensions :: V2 CInt
|
, engineWindowDimensions :: V2 CInt
|
||||||
, enginePhysicalDevice :: Vk.PhysicalDevice
|
, enginePhysicalDevice :: Vk.PhysicalDevice
|
||||||
, engineLogicalDevice :: Vk.Device
|
, engineLogicalDevice :: Vk.Device
|
||||||
, engineInstance :: Vk.Instance
|
, engineInstance :: Vk.Instance
|
||||||
, engineSwapchain :: Vk.SwapchainKHR
|
, engineSwapchain :: Vk.SwapchainKHR
|
||||||
, engineQueue :: Vk.Queue
|
, engineQueue :: Vk.Queue
|
||||||
, engineFramebuffers :: V.Vector Vk.Framebuffer
|
, engineFramebuffers :: V.Vector Vk.Framebuffer
|
||||||
, meshPipelineLayout :: Vk.PipelineLayout
|
, meshPipelineLayout :: Vk.PipelineLayout
|
||||||
, engineRenderPass :: Vk.RenderPass
|
, engineRenderPass :: Vk.RenderPass
|
||||||
, engineAllocator :: VMA.Allocator
|
, engineAllocator :: VMA.Allocator
|
||||||
, engineDepthImageView :: Vk.ImageView
|
, engineDepthImageView :: Vk.ImageView
|
||||||
, engineDepthImage :: AllocatedImage
|
, engineDepthImage :: AllocatedImage
|
||||||
, engineDepthFormat :: Vk.Format
|
, engineDepthFormat :: Vk.Format
|
||||||
, engineFrames :: V.Vector FrameData
|
, engineFrames :: V.Vector FrameData
|
||||||
, engineGlobalSetLayout :: Vk.DescriptorSetLayout
|
, engineGlobalSetLayout :: Vk.DescriptorSetLayout
|
||||||
, engineDescriptorPool :: Vk.DescriptorPool
|
, engineDescriptorPool :: Vk.DescriptorPool
|
||||||
|
, enginePhysicalDeviceProperties :: Vk.PhysicalDeviceProperties
|
||||||
}
|
}
|
||||||
|
|
||||||
data AllocatedBuffer = AllocatedBuffer
|
data AllocatedBuffer = AllocatedBuffer
|
||||||
|
|
Loading…
Reference in a new issue