Update feedback code to not use ptr-to-function type

* The previous PR that added this code existed before ptr-to-function was
  stripped down to just function for function types, so this change brings it in
  line.
This commit is contained in:
baldurk
2022-03-21 11:33:44 +00:00
parent ef68bb1646
commit ab228c51b8
@@ -260,13 +260,10 @@ static bool AnnotateDXILShader(const DXBC::DXBCContainer *dxbc, uint32_t space,
funcTypeTmp.members = {i32, resBindType, i32, i1};
funcType = editor.AddType(funcTypeTmp);
}
DXIL::Type funcPtrType;
funcPtrType.type = DXIL::Type::Pointer;
funcPtrType.inner = funcType;
DXIL::Function createHandleBaseFunction;
createHandleBaseFunction.name = "dx.op.createHandleFromBinding";
createHandleBaseFunction.funcType = editor.AddType(funcPtrType);
createHandleBaseFunction.funcType = funcType;
createHandleBaseFunction.external = true;
for(const DXIL::AttributeSet &attrs : editor.GetAttributeSets())