use type instead of set in ShaderDescriptorSet. example "texture rect" can run OK.

This commit is contained in:
2021-06-22 17:39:15 +08:00
parent 2b70ee07c8
commit 713e76215c
6 changed files with 31 additions and 15 deletions

View File

@@ -56,7 +56,7 @@ class GPUSemaphore;
enum class DescriptorSetType
{
//设计使其对应shader中的sets
//设计使其对应shader中的set
Global=0, ///<全局参数(如太阳光等)
Material, ///<材质中永远不变的参数
@@ -67,6 +67,8 @@ enum class DescriptorSetType
ENUM_CLASS_RANGE(Global,Renderable)
};//
const DescriptorSetType CheckDescriptorSetType(const char *str);
class DescriptorSetLayoutCreater;
class DescriptorSets;