aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x/gd3d10/d3d10.pl
blob: 4687b8365a65daf2745e770479f0dc0fa188d274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
while(<>)
{
	s/D3D11_SRV_DIMENSION_/D3D10_1_SRV_DIMENSION_/g;
	s/D3D11/D3D10/g;
	s/D3D10_SIGNATURE_PARAMETER_DESC/D3D11_SIGNATURE_PARAMETER_DESC/g;
	s/D3D_FEATURE_LEVEL_/D3D10_FEATURE_LEVEL_/g;
	s/D3D_FEATURE_LEVEL/D3D10_FEATURE_LEVEL1/g;
	s/^#define API 11/#define API 10/;
	s/^(#include "d3d1)1(_[^.]*)(.h")/${1}0$2.generated$3/;
	print $_;
}