(controller)
| 221 | print("\tAttribute '%s': %s" % (attr.name, value)) |
| 222 | |
| 223 | def sampleCode(controller): |
| 224 | # Find the biggest drawcall in the whole capture |
| 225 | draw = None |
| 226 | for d in controller.GetRootActions(): |
| 227 | draw = biggestDraw(draw, d) |
| 228 | |
| 229 | # Move to that draw |
| 230 | controller.SetFrameEvent(draw.eventId, True) |
| 231 | |
| 232 | print("Decoding mesh inputs at %d: %s\n\n" % (draw.eventId, draw.GetName(controller.GetStructuredFile()))) |
| 233 | |
| 234 | # Calculate the mesh input configuration |
| 235 | meshInputs = getMeshInputs(controller, draw) |
| 236 | |
| 237 | # Fetch and print the data from the mesh inputs |
| 238 | printMeshData(controller, meshInputs) |
| 239 | |
| 240 | print("Decoding mesh outputs\n\n") |
| 241 | |
| 242 | # Fetch the postvs data |
| 243 | postvs = controller.GetPostVSData(0, 0, rd.MeshDataStage.VSOut) |
| 244 | |
| 245 | # Calcualte the mesh configuration from that |
| 246 | meshOutputs = getMeshOutputs(controller, postvs) |
| 247 | |
| 248 | # Print it |
| 249 | printMeshData(controller, meshOutputs) |
| 250 | |
| 251 | def loadCapture(filename): |
| 252 | # Open a capture file handle |
no test coverage detected