added GetIndex at VKShaderParse.h

This commit is contained in:
2023-02-27 18:03:44 +08:00
parent 1c92d0eeaa
commit b8f8c9a337
2 changed files with 17 additions and 12 deletions

View File

@@ -399,7 +399,7 @@ void OutputShaderResource(ShaderResourceData<Descriptor> *ssd,ShaderParse *sp,co
for(const spirv_cross::Resource &obj:res)
{
strcpy(sr->name,sp->GetName(obj).c_str());
sr->set = sp->GetSet(obj);
sr->set = sp->GetDescriptorSet(obj);
sr->binding=sp->GetBinding(obj);
++sr;