Merge pull request #3664 from stenzek/d3d-z24-encoder

TextureConversionShader: Invert depth for Z24 encoder with D3D
This commit is contained in:
Jules Blok 2016-02-21 16:01:55 +01:00
commit 2aea549eef

View File

@ -557,8 +557,8 @@ static void WriteZ24Encoder(char*& p, API_TYPE ApiType)
WRITE(p, " float3 expanded0;\n"); WRITE(p, " float3 expanded0;\n");
WRITE(p, " float3 expanded1;\n"); WRITE(p, " float3 expanded1;\n");
WriteSampleColor(p, "r", "depth0", 0, ApiType); WriteSampleColor(p, "r", "depth0", 0, ApiType, true);
WriteSampleColor(p, "r", "depth1", 1, ApiType); WriteSampleColor(p, "r", "depth1", 1, ApiType, true);
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
{ {