Skip to content

Instantly share code, notes, and snippets.

@zao
Created July 4, 2015 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zao/7fe4077e42e1ab1f0440 to your computer and use it in GitHub Desktop.
Save zao/7fe4077e42e1ab1f0440 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use v5.10;
my $fxc = "C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64\\fxc.exe";
system($fxc, qw( testVS.hlsl /O3 /Zi /Fo Z:\\public_html\\fvd\\test.vs.cso /nologo /T vs_5_0 /E main ));
die "vs compile failed: $?" if $?;
system($fxc, qw( testPS.hlsl /O3 /Zi /Fo Z:\\public_html\\fvd\\test.ps.cso /nologo /T ps_5_0 /E main ));
die "ps compile failed: $?" if $?;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment