Skip to content

Commit 24c4be7

Browse files
jeffnnhekota
authored andcommitted
Fix hitgroup metadata argument order
(cherry picked from commit 21cf36a)
1 parent 139576e commit 24c4be7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/DXIL/DxilMetadataHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ Metadata *DxilMDHelper::EmitSubobject(const DxilSubobject &obj) {
19081908
case DXIL::SubobjectKind::HitGroup: {
19091909
llvm::StringRef Intersection, AnyHit, ClosestHit;
19101910
DXIL::HitGroupType hgType;
1911-
IFTBOOL(obj.GetHitGroup(hgType, Intersection, AnyHit, ClosestHit),
1911+
IFTBOOL(obj.GetHitGroup(hgType, AnyHit, ClosestHit, Intersection),
19121912
DXC_E_INCORRECT_DXIL_METADATA);
19131913
Args.emplace_back(Uint32ToConstMD((uint32_t)hgType));
19141914
Args.emplace_back(MDString::get(m_Ctx, Intersection));

0 commit comments

Comments
 (0)