summaryrefslogtreecommitdiff
path: root/devtools/bin/playback_getvb.pl
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/bin/playback_getvb.pl')
-rw-r--r--devtools/bin/playback_getvb.pl23
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/bin/playback_getvb.pl b/devtools/bin/playback_getvb.pl
new file mode 100644
index 0000000..c2ac79b
--- /dev/null
+++ b/devtools/bin/playback_getvb.pl
@@ -0,0 +1,23 @@
+# getframe.pl vbid blah.txt
+$desiredVB = shift;
+open INPUT, shift || die;
+while( <INPUT> )
+{
+ if( /Dx8VertexData: id: (\d+)\s+/ )
+ {
+ if( $1 == $desiredVB )
+ {
+ print;
+ $gotit = 1;
+ }
+ }
+ elsif( $gotit && /^vertex:/ )
+ {
+ print;
+ }
+ else
+ {
+ $gotit = 0;
+ }
+}
+close INPUT;