mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add helper function to look up ResourceDescription for a ResourceId
This commit is contained in:
@@ -316,6 +316,16 @@ class TestCase:
|
||||
|
||||
return None
|
||||
|
||||
def get_resource(self, id: rd.ResourceId):
|
||||
resources = self.controller.GetResources()
|
||||
|
||||
for r in resources:
|
||||
r: rd.ResourceDescription
|
||||
if r.resourceId == id:
|
||||
return r
|
||||
|
||||
return None
|
||||
|
||||
def get_last_draw(self):
|
||||
last_draw: rd.DrawcallDescription = self.controller.GetDrawcalls()[-1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user