Update examples to latest python API

This commit is contained in:
baldurk
2020-05-20 11:39:12 +01:00
parent 3b00c2d127
commit fa9215477d
3 changed files with 6 additions and 4 deletions
@@ -137,9 +137,9 @@ def getMeshOutputs(controller, postvs):
# Construct a resource format for this element
meshOutput.format = rd.ResourceFormat()
meshOutput.format.compByteWidth = 8 if attr.compType == rd.CompType.Double else 4
meshOutput.format.compByteWidth = rd.VarTypeByteSize(attr.varType)
meshOutput.format.compCount = attr.compCount
meshOutput.format.compType = attr.compType
meshOutput.format.compType = rd.VarTypeCompType(attr.varType)
meshOutput.format.type = rd.ResourceFormatType.Regular
meshOutput.name = attr.semanticIdxName if attr.varName == '' else attr.varName
@@ -193,9 +193,9 @@ The position output is also treated specially - it always appears first, regardl
# Construct a resource format for this element
meshOutput.format = rd.ResourceFormat()
meshOutput.format.compByteWidth = 8 if attr.compType == rd.CompType.Double else 4
meshOutput.format.compByteWidth = rd.VarTypeByteSize(attr.varType)
meshOutput.format.compCount = attr.compCount
meshOutput.format.compType = attr.compType
meshOutput.format.compType = rd.VarTypeCompType(attr.varType)
meshOutput.format.type = rd.ResourceFormatType.Regular
meshOutput.name = attr.semanticIdxName if attr.varName == '' else attr.varName
+2
View File
@@ -78,3 +78,5 @@ Maths & Utilities
.. autofunction:: renderdoc.MaskForStage
.. autofunction:: renderdoc.StartSelfHostCapture
.. autofunction:: renderdoc.EndSelfHostCapture
.. autofunction:: renderdoc.VarTypeByteSize
.. autofunction:: renderdoc.VarTypeCompType