|
|
|
|
|
|
|
|
|
|
float3 GetTextureDataDebug(uint paramId, float2 uv, Texture2D tex, float4 texelSize, float4 mipInfo, float3 originalColor) |
|
|
|
{ |
|
|
|
float3 outColor = originalColor; |
|
|
|
|
|
|
|
return GetDebugMipColorIncludingMipReduction(originalColor, tex, texelSize, uv, mipInfo); |
|
|
|
outColor = GetDebugMipColorIncludingMipReduction(originalColor, tex, texelSize, uv, mipInfo); |
|
|
|
break; |
|
|
|
return GetDebugMipCountColor(originalColor, tex); |
|
|
|
outColor = GetDebugMipCountColor(originalColor, tex); |
|
|
|
break; |
|
|
|
return GetDebugMipReductionColor(tex, mipInfo); |
|
|
|
outColor = GetDebugMipReductionColor(tex, mipInfo); |
|
|
|
break; |
|
|
|
return GetDebugStreamingMipColor(tex, mipInfo); |
|
|
|
outColor = GetDebugStreamingMipColor(tex, mipInfo); |
|
|
|
break; |
|
|
|
return GetDebugStreamingMipColorBlended(originalColor, tex, mipInfo); |
|
|
|
outColor = GetDebugStreamingMipColorBlended(originalColor, tex, mipInfo); |
|
|
|
break; |
|
|
|
return originalColor; |
|
|
|
return outColor; |
|
|
|
} |
|
|
|
|
|
|
|
// DebugFont code assume black and white font with texture size 256x128 with bloc of 16x16 |
|
|
|