merge common parts of encoding shaders
This commit is contained in:
parent
7f539b6033
commit
f99c8a0b70
|
@ -105,6 +105,7 @@ void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType)
|
|||
|
||||
WRITE(p, " sampleUv.x = xib + halfxb * %d;\n", blkW);
|
||||
WRITE(p, " sampleUv.y = yb + xoff;\n");
|
||||
WRITE(p, " bool first = xb == (halfxb * 2);\n");
|
||||
}
|
||||
|
||||
void WriteSampleColor(char*& p, const char* colorComp, const char* dest, int xoffset, API_TYPE ApiType)
|
||||
|
@ -373,8 +374,6 @@ void WriteRGBA8Encoder(char* p,API_TYPE ApiType)
|
|||
{
|
||||
WriteSwizzler(p, GX_TF_RGBA8, ApiType);
|
||||
|
||||
WRITE(p, " bool first = xb == (halfxb * 2);\n");
|
||||
|
||||
WRITE(p, " float4 texSample;\n");
|
||||
WRITE(p, " float4 color0;\n");
|
||||
WRITE(p, " float4 color1;\n");
|
||||
|
@ -563,8 +562,6 @@ void WriteZ24Encoder(char* p, API_TYPE ApiType)
|
|||
{
|
||||
WriteSwizzler(p, GX_TF_Z24X8, ApiType);
|
||||
|
||||
WRITE(p, " bool first = xb == (halfxb * 2);\n");
|
||||
|
||||
WRITE(p, " float depth0;\n");
|
||||
WRITE(p, " float depth1;\n");
|
||||
WRITE(p, " float3 expanded0;\n");
|
||||
|
|
Loading…
Reference in New Issue