(360) No longer need to deploy the shaders dir

This commit is contained in:
twinaphex 2013-04-12 18:20:08 +02:00
parent e3893229d9
commit 52a9a3d10a
3 changed files with 46 additions and 49 deletions

View File

@ -20,46 +20,46 @@
#endif #endif
static const char *stock_hlsl_program = static const char *stock_hlsl_program =
"void main_vertex" "void main_vertex\n"
"(" "(\n"
" float4 position : POSITION," " float4 position : POSITION,\n"
" float4 color : COLOR," " float4 color : COLOR,\n"
"" "\n"
" uniform float4x4 modelViewProj," " uniform float4x4 modelViewProj,\n"
"" "\n"
" float4 texCoord : TEXCOORD0," " float4 texCoord : TEXCOORD0,\n"
" out float4 oPosition : POSITION," " out float4 oPosition : POSITION,\n"
" out float4 oColor : COLOR," " out float4 oColor : COLOR,\n"
" out float2 otexCoord : TEXCOORD" " out float2 otexCoord : TEXCOORD\n"
")" ")\n"
"{" "{\n"
" oPosition = mul(modelViewProj, position);" " oPosition = mul(modelViewProj, position);\n"
" oColor = color;" " oColor = color;\n"
" otexCoord = texCoord;" " otexCoord = texCoord;\n"
"}" "}\n"
"" "\n"
"struct output" "struct output\n"
"{" "{\n"
" float4 color: COLOR; " " float4 color: COLOR;\n"
"};" "};\n"
"" "\n"
"struct input" "struct input\n"
"{" "{\n"
" float2 video_size;" " float2 video_size;\n"
" float2 texture_size;" " float2 texture_size;\n"
" float2 output_size;" " float2 output_size;\n"
" float frame_count;" " float frame_count;\n"
" float frame_direction;" " float frame_direction;\n"
" float frame_rotation;" " float frame_rotation;\n"
"};" "};\n"
"" "\n"
"output main_fragment(float2 texCoord : TEXCOORD0," "output main_fragment(float2 texCoord : TEXCOORD0,\n"
"uniform sampler2D decal : TEXUNIT0, uniform input IN)" "uniform sampler2D decal : TEXUNIT0, uniform input IN)\n"
"{" "{\n"
" output OUT;" " output OUT;\n"
" OUT.color = tex2D(decal, texCoord);" " OUT.color = tex2D(decal, texCoord);\n"
" return OUT;" " return OUT;\n"
"}"; "}\n";
struct hlsl_program struct hlsl_program
{ {

View File

@ -124,7 +124,7 @@
</Link> </Link>
<Deploy> <Deploy>
<DeploymentType>CopyToHardDrive</DeploymentType> <DeploymentType>CopyToHardDrive</DeploymentType>
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)\media\shaders=$(OutDir)media\shaders</DeploymentFiles> <DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media</DeploymentFiles>
<ForceCopy>true</ForceCopy> <ForceCopy>true</ForceCopy>
</Deploy> </Deploy>
<ImageXex> <ImageXex>
@ -161,7 +161,7 @@
<StackCommitSize>524288</StackCommitSize> <StackCommitSize>524288</StackCommitSize>
</Link> </Link>
<Deploy> <Deploy>
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)\media\shaders=$(OutDir)media\shaders</DeploymentFiles> <DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media</DeploymentFiles>
<ForceCopy>true</ForceCopy> <ForceCopy>true</ForceCopy>
<DeploymentType>CopyToHardDrive</DeploymentType> <DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy> </Deploy>
@ -204,7 +204,7 @@
<StackCommitSize>524288</StackCommitSize> <StackCommitSize>524288</StackCommitSize>
</Link> </Link>
<Deploy> <Deploy>
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)\media\shaders=$(OutDir)media\shaders</DeploymentFiles> <DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media</DeploymentFiles>
<ForceCopy>true</ForceCopy> <ForceCopy>true</ForceCopy>
<DeploymentType>CopyToHardDrive</DeploymentType> <DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy> </Deploy>
@ -246,7 +246,7 @@
<StackCommitSize>524288</StackCommitSize> <StackCommitSize>524288</StackCommitSize>
</Link> </Link>
<Deploy> <Deploy>
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)\media\shaders=$(OutDir)media\shaders</DeploymentFiles> <DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media</DeploymentFiles>
<ForceCopy>true</ForceCopy> <ForceCopy>true</ForceCopy>
<DeploymentType>CopyToHardDrive</DeploymentType> <DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy> </Deploy>
@ -288,7 +288,7 @@
</Link> </Link>
<Deploy> <Deploy>
<DeploymentType>CopyToHardDrive</DeploymentType> <DeploymentType>CopyToHardDrive</DeploymentType>
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)\media\shaders=$(OutDir)media\shaders</DeploymentFiles> <DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media</DeploymentFiles>
<ForceCopy>true</ForceCopy> <ForceCopy>true</ForceCopy>
</Deploy> </Deploy>
<ImageXex> <ImageXex>
@ -331,7 +331,7 @@
<ForceCopy>true</ForceCopy> <ForceCopy>true</ForceCopy>
</Deploy> </Deploy>
<Deploy> <Deploy>
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)\media\shaders=$(OutDir)media\shaders</DeploymentFiles> <DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media</DeploymentFiles>
<DeploymentType>CopyToHardDrive</DeploymentType> <DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy> </Deploy>
<ImageXex> <ImageXex>

View File

@ -30,9 +30,6 @@
<Filter Include="Source Files\media\hd"> <Filter Include="Source Files\media\hd">
<UniqueIdentifier>{76fa04d8-4379-4b8c-ae79-2aa78d380e06}</UniqueIdentifier> <UniqueIdentifier>{76fa04d8-4379-4b8c-ae79-2aa78d380e06}</UniqueIdentifier>
</Filter> </Filter>
<Filter Include="Source Files\media\shaders">
<UniqueIdentifier>{3a05047b-b9ec-4821-bb28-d1b0e9e3e8bb}</UniqueIdentifier>
</Filter>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\..\griffin\griffin.c"> <ClCompile Include="..\..\griffin\griffin.c">