Lines Matching refs:context

53 void writeFragmentOutput (const FragmentShadingContext& context, int packetNdx, int fragNdx, int ou…  in writeFragmentOutput()  argument
57 DE_ASSERT(outputNdx >= 0 && outputNdx < context.numFragmentOutputs); in writeFragmentOutput()
59 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutput()
65 …ointVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, … in readPointVarying() argument
70 return context.varyings[0][varyingLoc].get<T>(); in readPointVarying()
74 …LineVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, … in readLineVarying() argument
76 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readLineVarying()
77 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>(); in readLineVarying()
81 …ngleVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, … in readTriangleVarying() argument
83 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readTriangleVarying()
84 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>() in readTriangleVarying()
85 + packet.barycentric[2][fragNdx] * context.varyings[2][varyingLoc].get<T>(); in readTriangleVarying()
89 tcu::Vector<T, 4> readVarying (const FragmentPacket& packet, const FragmentShadingContext& context,… in readVarying() argument
91 …if (context.varyings[1] == DE_NULL) return readPointVarying<T> (packet, context, varyingLoc, frag… in readVarying()
92 …if (context.varyings[2] == DE_NULL) return readLineVarying<T> (packet, context, varyingLoc, fragN… in readVarying()
93 return readTriangleVarying<T> (packet, context, varyingLoc, fragNdx); in readVarying()
129 …agmentdFdx[4], const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc) in dFdxVarying() argument
133 readVarying<T>(packet, context, varyingLoc, 0), in dFdxVarying()
134 readVarying<T>(packet, context, varyingLoc, 1), in dFdxVarying()
135 readVarying<T>(packet, context, varyingLoc, 2), in dFdxVarying()
136 readVarying<T>(packet, context, varyingLoc, 3), in dFdxVarying()
143 …agmentdFdy[4], const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc) in dFdyVarying() argument
147 readVarying<T>(packet, context, varyingLoc, 0), in dFdyVarying()
148 readVarying<T>(packet, context, varyingLoc, 1), in dFdyVarying()
149 readVarying<T>(packet, context, varyingLoc, 2), in dFdyVarying()
150 readVarying<T>(packet, context, varyingLoc, 3), in dFdyVarying()
158 inline float readFragmentDepth (const FragmentShadingContext& context, int packetNdx, int fragNdx, … in readFragmentDepth() argument
161 DE_ASSERT(context.fragmentDepths); in readFragmentDepth()
162 return context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx]; in readFragmentDepth()
165 inline void writeFragmentDepth (const FragmentShadingContext& context, int packetNdx, int fragNdx, … in writeFragmentDepth() argument
168 DE_ASSERT(context.fragmentDepths); in writeFragmentDepth()
169 context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx] = depthValue; in writeFragmentDepth()