Dynamic window resizing
This commit is contained in:
@@ -7,14 +7,18 @@
|
||||
|
||||
namespace cve {
|
||||
struct PipelineConfigInfo {
|
||||
VkViewport viewport;
|
||||
VkRect2D scissor;
|
||||
PipelineConfigInfo(const PipelineConfigInfo&) = delete;
|
||||
PipelineConfigInfo& operator=(const PipelineConfigInfo&) = delete;
|
||||
|
||||
VkPipelineViewportStateCreateInfo viewportInfo;
|
||||
VkPipelineInputAssemblyStateCreateInfo inputAssemblyInfo;
|
||||
VkPipelineRasterizationStateCreateInfo rasterizationInfo;
|
||||
VkPipelineMultisampleStateCreateInfo multisampleInfo;
|
||||
VkPipelineColorBlendAttachmentState colorBlendAttachment;
|
||||
VkPipelineColorBlendStateCreateInfo colorBlendInfo;
|
||||
VkPipelineDepthStencilStateCreateInfo depthStencilInfo;
|
||||
std::vector<VkDynamicState> dynamicStateEnables;
|
||||
VkPipelineDynamicStateCreateInfo dynamicStateInfo;
|
||||
VkPipelineLayout pipelineLayout = nullptr;
|
||||
VkRenderPass renderPass = nullptr;
|
||||
uint32_t subpass = 0;
|
||||
@@ -29,7 +33,7 @@ namespace cve {
|
||||
CvePipeline& operator=(const CvePipeline&) = delete;
|
||||
|
||||
void bind(VkCommandBuffer commandBuffer);
|
||||
static PipelineConfigInfo defaultPipelineConfigInfo(uint32_t width, uint32_t height);
|
||||
static void defaultPipelineConfigInfo(PipelineConfigInfo& configInfo);
|
||||
|
||||
private:
|
||||
static std::vector<char> readFile(const std::string& filepath);
|
||||
|
||||
Reference in New Issue
Block a user