struct FragmentData
{
unsigned int nColor; // Pixel color
unsigned int nDepthAndCoverage;
};
struct FragmentLink
{
FragmentData fragmentData; // Fragment data
unsigned int nNext; // Link to next fragment
};
And now I need to add some information into this structure, for instance:
struct FragmentData
{
unsigned int nColor; // Pixel color
unsigned int nDepthAndCoverage;
float2 PrimitiveID;
};
struct FragmentLink
{
FragmentData fragmentData; // Fragment data
unsigned int nNext; // Link to next fragment
};
This algorithm has two phases, the first one is create a linked list, and the other one is sort and render. I got a black screen and my monitor is turned off and on many times as I am running this project, the first phase always have no error, but I replace float2 PrimitiveID into float PrimitiveID, then everything is okay. Anybody knows the reason, please help me? because I need to add some other information.
Edited by steven166, 25 June 2012 - 05:03 AM.






