그래픽 파이프라인까지 완료
This commit is contained in:
@@ -21,7 +21,7 @@ class Graphics final {
|
||||
};
|
||||
|
||||
struct SwapChainProperties {
|
||||
VkSurfaceCapabilitiesKHR capabilities;
|
||||
VkSurfaceCapabilitiesKHR capabilities = {};
|
||||
std::vector<VkSurfaceFormatKHR> formats;
|
||||
std::vector<VkPresentModeKHR> present_modes;
|
||||
|
||||
@@ -36,6 +36,7 @@ class Graphics final {
|
||||
void CreateSurface();
|
||||
void CreateSwapChain();
|
||||
void CreateImageViews();
|
||||
void CreateRenderPass();
|
||||
void CreateGraphicsPipeline();
|
||||
|
||||
std::vector<gsl::czstring> GetRequiredInstanceExtentions();
|
||||
@@ -83,6 +84,10 @@ class Graphics final {
|
||||
std::vector<VkImage> swap_chain_images_;
|
||||
std::vector<VkImageView> swap_chain_image_views_;
|
||||
|
||||
VkPipelineLayout pipeline_layout_ = VK_NULL_HANDLE;
|
||||
VkRenderPass render_pass_ = VK_NULL_HANDLE;
|
||||
VkPipeline pipeline_ = VK_NULL_HANDLE;
|
||||
|
||||
gsl::not_null<Window *> window_;
|
||||
bool validation_enabled_ = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user