Skip to content

Commit

Permalink
TextureConversionShader: Use a Texture2DArray to match the shader res…
Browse files Browse the repository at this point in the history
…ource view.
  • Loading branch information
CrossVR committed Feb 21, 2015
1 parent c180174 commit 139ad3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoCommon/TextureConversionShader.cpp
Expand Up @@ -78,7 +78,7 @@ static void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType)
else // D3D
{
WRITE(p, "sampler samp0 : register(s0);\n");
WRITE(p, "Texture2D Tex0 : register(t0);\n");
WRITE(p, "Texture2DArray Tex0 : register(t0);\n");

WRITE(p, "void main(\n");
WRITE(p, " out float4 ocol0 : SV_Target, in float4 rawpos : SV_Position)\n");
Expand Down Expand Up @@ -126,7 +126,7 @@ static void WriteSampleColor(char*& p, const char* colorComp, const char* dest,
}
else
{
WRITE(p, " %s = Tex0.Sample(samp0, uv0 + float2(%d, 0) * sample_offset).%s;\n",
WRITE(p, " %s = Tex0.Sample(samp0, float3(uv0 + float2(%d, 0) * sample_offset, 0.0)).%s;\n",
dest, xoffset, colorComp
);
}
Expand Down

0 comments on commit 139ad3b

Please sign in to comment.