当我们有了一个uniform buff之后,vulkan 还不知道这个信息,需要通过descriptor进行描述。

Descriptors and Descriptor Sets

A descriptor is a special opaque shader variable(隐藏变量) that shaders use to access buffer and image resources in an indirect fashion. It can be thought of as a "pointer" to a resource. The Vulkan API allows these variables to be changed between draw operations so that the shaders can access different resources for each draw.

A descriptor set layout is used to describe the content of a list of descriptor sets.

A descriptor set is called a "set" because it can refer to an array of homogenous resources that can be described with the same layout binding. (The "layout binding" will be explained shortly.)

Pipeline Layouts

A pipeline layout contains a list of descriptor set layouts. It also can contain a list of push constant ranges, which is an alternate way to pass constants to a shader and will not be covered here.

Shader Referencing of Descriptors

Create a Descriptor Set

Recall that the descriptor set that you defined is used to inform the GPU how the data contained in the uniform buffer is mapped to the shader program's uniform variables.

Descriptor Pool

Allocate a Descriptor Set from the Pool

Update the Descriptor Set

Reference

1、ARB_uniform_buffer_object.txt

最新文章

  1. 黄聪:《跟黄聪学WordPress插件开发》
  2. 也谈谈规范JS代码的几个注意点
  3. js中关于动态添加事件,不能使用循环变量的问题
  4. Android Activity/Service/Broadcaster三大组件之间互相调用
  5. 【转】CodeIgniter定义自己的Helper和Helper的方法
  6. 强大的JQuery(三)--操作html与遍历
  7. 抽奖随机算法的技术探讨与C#实现
  8. ExtJs 4.2 treePanel 点击树节点 传送参数到后台(多个参数)
  9. Android编程中常用的PopupWindow和Dialog对话框
  10. lab 1实验报告
  11. 十一、C# 泛型
  12. Xamarin改写安卓Residemenu控件
  13. SQL 经典练习
  14. unity4.x for mac破解(含Unity全版本号破解)
  15. 转: Apache SSI详解及应用
  16. DIP And DI
  17. 包含常用功能的 gulpfile.js
  18. 标准模型和IE模型的区别:
  19. 在linux上手动搭建svn服务器
  20. idea 远程调试 tomcat web应用

热门文章

  1. 02.python实现排序算法
  2. Java安全中的“大坑”,跨平台真“浮云”
  3. windowsService 程序
  4. Emergency
  5. vscode修改样式
  6. An attempt was made to call the method com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; but it does not exist. Its class, com.google.gson.GsonBuilder, is available from the foll
  7. vue - 动态绑定 class
  8. tp3.2 自带的文件上传及生成缩略图功能
  9. leetcode1162 As Far from Land as Possible
  10. 吴裕雄--天生自然java开发常用类库学习笔记:多对多关系范例