Improve assertion about missing entry in SPIR-V module in Vulkan backend.

#rb none
#jira none
#rnx

[CL 14256825 by Lukas Hermanns in ue5-main branch]
This commit is contained in:
Lukas Hermanns
2020-09-03 16:49:21 -04:00
parent c63146e7e7
commit ff30db94eb

View File

@@ -310,7 +310,7 @@ static void ComputeMovableWordIndices(FSpirv& Spirv)
if (FoundTypeName && FoundTypeName->Len() > 0)
{
FSpirv::FEntry* FoundEntry = Spirv.GetEntry(*FoundTypeName);
check(FoundEntry);
checkf(FoundEntry, TEXT("cannot find variable entry in SPIR-V module: %s"), **FoundTypeName);
FDecorations& FoundDecorations = Decorations.FindChecked(VariableId);
FoundEntry->Binding = FoundDecorations.BindingIndex;
FoundEntry->WordBindingIndex = FoundDecorations.WordBindingIndex;
@@ -322,7 +322,7 @@ static void ComputeMovableWordIndices(FSpirv& Spirv)
{
// Standalone global var
FSpirv::FEntry* FoundEntry = Spirv.GetEntry(*FoundVariableName);
check(FoundEntry);
checkf(FoundEntry, TEXT("cannot find variable entry in SPIR-V module: %s"), **FoundVariableName);
FDecorations& FoundDecorations = Decorations.FindChecked(VariableId);
FoundEntry->Binding = FoundDecorations.BindingIndex;
FoundEntry->WordBindingIndex = FoundDecorations.WordBindingIndex;