A graphics pipeline consists of shader stages, a pipeline layout, a render pass, and fixed-function pipeline stages.

Dynamic State

A dynamic pipeline state is a state that can be changed by a command buffer command during the execution of a command buffer. Advance notification of what states are dynamic during command buffer execution may be useful for a driver as it sets up the GPU for command buffer execution.

Pipeline Vertex Input State

Pipeline Vertex Input Assembly State

The input assembly state is basically where you declare how your vertices form the geometry you want to draw.

Pipeline Rasterization State

Pipeline Color Blend State

Pipeline Viewport State

Pipeline Depth Stencil State

Pipeline Multisample State

Pulling It All Together - Create Graphics Pipeline

VkGraphicsPipelineCreateInfo pipeline;
pipeline.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
pipeline.pNext = NULL;
pipeline.layout = info.pipeline_layout;
pipeline.basePipelineHandle = VK_NULL_HANDLE;
pipeline.basePipelineIndex = ;
pipeline.flags = ;
pipeline.pVertexInputState = &vi;
pipeline.pInputAssemblyState = &ia;
pipeline.pRasterizationState = &rs;
pipeline.pColorBlendState = &cb;
pipeline.pTessellationState = NULL;
pipeline.pMultisampleState = &ms;
pipeline.pDynamicState = &dynamicState;
pipeline.pViewportState = &vp;
pipeline.pDepthStencilState = &ds;
pipeline.pStages = info.shaderStages;
pipeline.stageCount = ;
pipeline.renderPass = info.render_pass;
pipeline.subpass = ; res = vkCreateGraphicsPipelines(info.device, NULL, ,
&pipeline, NULL, &info.pipeline);

最新文章

  1. zookeeper分布式锁原理
  2. SqlServer--模糊查询-通配符
  3. 收集一些关于OI/ACM的奇怪的东西……
  4. C#添加测量运行时间
  5. 重叠(Overlapping) NAT
  6. hdu4057Rescue the Rabbit(ac自动机+dp)
  7. Java的正则表达式
  8. javascript中获取非行间样式的方法
  9. binlog/relay_log的清理
  10. css实现div块半透明
  11. 万能脚本助Web执行底层Linux命令
  12. AJAX里调用AJAX,作定时进度刷新
  13. LINUX HA:Pacemaker + Corosync初配成功
  14. ECSHOP返回顶部的代码 纯CSS超简单
  15. 关于JPA多数据源的部署persistence.xml文件配置以及对应实现类注入
  16. Linux-tar命令(2)
  17. linux实现文件的去重【转】
  18. 软件推荐----截图软件Snagit
  19. 分析easyswoole3.0源码,consoleTcpService(六)
  20. CentOS7 安装Perl

热门文章

  1. IDEA工具java开发之 常用插件 git插件 追加提交 Code Review==代码评审插件 撤销提交 撤销提交 关联远程仓库 设置git 本地操作
  2. mysql时出现:is not allowed to connect to this MySQL serverConnection closed by foreign host问题的解决
  3. delphi中的pansichar和pchar等类型的区别
  4. java Vector的特点与使用
  5. Java的clone方法效率问题
  6. for 循环遍历数据动态渲染html
  7. java#tostring
  8. leetcode200 Number of Islands
  9. 微信7.0以后更新后H5页面定位不准确
  10. MyEclipse8.5 + jdk 1.6.0_43 + tomcat6 + maven 3.0.4 + win7 32位 ,环境搭建并看到“hello world”