mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
Add a DX11 video plugin.
Might or might not work for you, yet. Anyway, read the soon to be created forum thread on this plugin before asking any questions. Huge thanks to rodolfoosvaldobogado for helping me out in various areas. Also, thanks to everyone on IRC who supported me during development ;) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5680 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -511,6 +511,7 @@ const char *GeneratePixelShaderCode(u32 texture_mask, bool dstAlphaEnable, u32 H
|
||||
// alpha test will always fail, so restart the shader and just make it an empty function
|
||||
p = pmainstart;
|
||||
WRITE(p, "ocol0 = 0;\n");
|
||||
WRITE(p, "depth = 1.f;\n");
|
||||
WRITE(p, "discard;return;\n");
|
||||
}
|
||||
else
|
||||
@ -952,7 +953,7 @@ static bool WriteAlphaTest(char *&p, u32 HLSL)
|
||||
compindex = bpmem.alphaFunc.comp1 % 8;
|
||||
WRITE(p, tevAlphaFuncsTable[compindex],alphaRef[1]);//lookup the second component from the alpha function table
|
||||
|
||||
WRITE(p, ")){ocol0 = 0;discard;return;}\n");
|
||||
WRITE(p, ")){ocol0 = 0;depth = 1.f;discard;return;}\n");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user