Fix tests referring to SigParameter.compType

This commit is contained in:
baldurk
2020-05-08 10:10:00 +01:00
parent ef58d7e1f8
commit d0385567bf
+2 -2
View File
@@ -135,9 +135,9 @@ def get_postvs_attrs(controller: rd.ReplayController, mesh: rd.MeshFormat, data_
# Construct a resource format for this element
attr.mesh.format = rd.ResourceFormat()
attr.mesh.format.compByteWidth = 8 if sig.compType == rd.CompType.Double else 4
attr.mesh.format.compByteWidth = 8 if sig.varType == rd.VarType.Double else 4
attr.mesh.format.compCount = sig.compCount
attr.mesh.format.compType = sig.compType
attr.mesh.format.compType = rd.VarTypeCompType(sig.varType)
attr.mesh.format.type = rd.ResourceFormatType.Regular
attr.name = sig.semanticIdxName if sig.varName == '' else sig.varName