MCPcopy Create free account
hub / github.com/baldurk/renderdoc / get_task_data

Method get_task_data

util/test/rdtest/testcase.py:1039–1057  ·  view source on GitHub ↗
(self, action: rd.ActionDescription)

Source from the content-addressed store, hash-verified

1037 return ret
1038
1039 def get_task_data(self, action: rd.ActionDescription):
1040 mesh: rd.MeshFormat = self.controller.GetPostVSData(0, 0, rd.MeshDataStage.TaskOut)
1041 if mesh.numIndices == 0:
1042 raise TestFailureException("Task data is empty")
1043
1044 if len(mesh.taskSizes) == 0:
1045 raise TestFailureException("Task data is empty")
1046
1047 pipe: rd.PipeState = self.controller.GetPipelineState()
1048 shader = pipe.GetShaderReflection(rd.ShaderStage.Task)
1049 taskIdx = 0
1050 task = action.dispatchDimension
1051 data = []
1052 for x in range(task[0]):
1053 for y in range(task[1]):
1054 for z in range(task[2]):
1055 data += self.decode_task_data(self.controller, mesh, shader.taskPayload, taskIdx)
1056 taskIdx += 1
1057 return data
1058
1059 def check_renderdoc_log_asserts(self):
1060 countAsserts = 0

Callers 2

check_captureMethod · 0.80
check_captureMethod · 0.80

Calls 4

decode_task_dataMethod · 0.95
GetPostVSDataMethod · 0.80
rangeFunction · 0.50

Tested by

no test coverage detected