reduce shader level requirements for basic d3d display method functionality

This commit is contained in:
zeromus 2015-10-13 00:25:09 -05:00
parent 7e9c966887
commit 077296b9ba
1 changed files with 8 additions and 2 deletions

View File

@ -184,7 +184,10 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.SlimDX
try
{
//cgc can create shaders that will need backwards compatibility...
bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, "ps_3_0", ShaderFlags.EnableBackwardsCompatibility, out errors);
string profile = "ps_1_0";
if (cg)
profile = "ps_3_0"; //todo - smarter logic somehow
bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, profile, ShaderFlags.EnableBackwardsCompatibility, out errors);
}
catch(Exception ex)
{
@ -225,7 +228,10 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.SlimDX
try
{
//cgc can create shaders that will need backwards compatibility...
bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, "vs_3_0", ShaderFlags.EnableBackwardsCompatibility, out errors);
string profile = "vs_1_1";
if (cg)
profile = "vs_3_0"; //todo - smarter logic somehow
bytecode = d3d9.ShaderBytecode.Compile(source, null, null, entry, profile, ShaderFlags.EnableBackwardsCompatibility, out errors);
}
catch (Exception ex)
{