summaryrefslogtreecommitdiff
path: root/unittests/autotestscripts/check_dynamic_shader_compile.pl
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /unittests/autotestscripts/check_dynamic_shader_compile.pl
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'unittests/autotestscripts/check_dynamic_shader_compile.pl')
-rw-r--r--unittests/autotestscripts/check_dynamic_shader_compile.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/unittests/autotestscripts/check_dynamic_shader_compile.pl b/unittests/autotestscripts/check_dynamic_shader_compile.pl
new file mode 100644
index 0000000..39e8e3a
--- /dev/null
+++ b/unittests/autotestscripts/check_dynamic_shader_compile.pl
@@ -0,0 +1,15 @@
+#!perl
+
+open(DLL,"../../../game/bin/shaderapidx9.dll" ) || die "can't open shaderapi";
+
+binmode DLL;
+my $dllcode = do { local( $/ ) ; <DLL> } ; # slurp comparison output in
+close DLL;
+
+if ( $dllcode =~ /dynamic_shader_compile_is_on/s )
+ {
+ open(ERRORS,">errors.txt") || die "huh - can't write";
+ print ERRORS "stdshader_dx9.dll was built with dynamic shader compile!\n";
+ close ERRORS;
+ }
+