mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-18 11:45:55 +00:00
* This lets the testcase track the current EID and print it when a failure happens
48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
import renderdoc as rd
|
|
import rdtest
|
|
|
|
|
|
class D3D11_Feature_Level_9(rdtest.TestCase):
|
|
demos_test_name = 'D3D11_Feature_Level_9'
|
|
|
|
def check_capture(self):
|
|
last_action = self.get_last_action()
|
|
|
|
self.set_event(last_action.eventId, True)
|
|
|
|
self.check_triangle(out=last_action.copyDestination)
|
|
|
|
action = self.find_action("Draw")
|
|
|
|
assert action is not None
|
|
|
|
self.set_event(action.eventId, False)
|
|
|
|
postvs_data = self.get_postvs(action, rd.MeshDataStage.VSOut, 0, action.numIndices)
|
|
|
|
postvs_ref: rdtest.MeshReference = {
|
|
0: {
|
|
'vtx': 0,
|
|
'idx': 0,
|
|
'SV_POSITION': [-0.5, -0.5, 0.0, 1.0],
|
|
'COLOR': [0.0, 1.0, 0.0, 1.0],
|
|
'TEXCOORD': [0.0, 0.0],
|
|
},
|
|
1: {
|
|
'vtx': 1,
|
|
'idx': 1,
|
|
'SV_POSITION': [0.0, 0.5, 0.0, 1.0],
|
|
'COLOR': [0.0, 1.0, 0.0, 1.0],
|
|
'TEXCOORD': [0.0, 1.0],
|
|
},
|
|
2: {
|
|
'vtx': 2,
|
|
'idx': 2,
|
|
'SV_POSITION': [0.5, -0.5, 0.0, 1.0],
|
|
'COLOR': [0.0, 1.0, 0.0, 1.0],
|
|
'TEXCOORD': [1.0, 0.0],
|
|
},
|
|
}
|
|
|
|
self.check_mesh_data(postvs_ref, postvs_data)
|