Recently i am studing GPGPU. my problem is how i transform the output of a fragment program to main memory.
for example:
float4 main(float3 Peye : TEXCOORD0,
half3 Neye : TEXCOORD1,
half2 uv : TEXCOORD2,
half3 Kd : COLOR0,
half3 Ks : COLOR1,
uniform sampler2D diffuseMap,
uniform float3 Plight,
uniform half3 lightColor,
uniform half3 shininess
) : COLOR0
{....}
i know this fragment program produce a result and then pass it to COLOR0.I want to know where COLOR0 is ?and if i want to use glreadPixels to
transform it to main memory,what should i do?
thanks for your concerning !



