Lines Matching refs:col
155 void writePixel(glw::GLubyte *p, glw::GLdouble col);
156 void writeChannel(glw::GLubyte *p, int channel, glw::GLdouble col);
158 void writeToUnsignedChannel(glw::GLubyte *p, int channel, glw::GLdouble col);
160 void writeToSignedChannel(glw::GLubyte *p, int channel, glw::GLdouble col);
161 void writeToFloatChannel(glw::GLubyte *p, int channel, glw::GLdouble col);
162 void writeToHalfFloatChannel(glw::GLubyte *p, int channel, glw::GLdouble col);
166 void write3Channel(glw::GLubyte *p, int channel, glw::GLdouble col);
172 void write4Channel(glw::GLubyte *p, int channel, glw::GLdouble col);
173 void write11F_11F_10F_Channel(glw::GLubyte *p, int channel, glw::GLdouble col);
174 void setRefcolour (glu::CallLogWrapper gl, glw::GLdouble col);
176 void setUnsignedRefcolour(glu::CallLogWrapper gl, glw::GLdouble col);
178 void setSignedRefcolour(glu::CallLogWrapper gl, glw::GLdouble col);
179 void setRGB10A2Refcolour (glu::CallLogWrapper gl, glw::GLdouble col);
240 void TexImageUtils::writePixel(glw::GLubyte *p, glw::GLdouble col)
243 writeChannel(p, ch, (ch == 3) ? 1.0 : col);
246 void TexImageUtils::writeChannel(glw::GLubyte *p, int channel, glw::GLdouble col)
251 writeToUnsignedChannel<glw::GLubyte>(p, channel, col);
254 writeToSignedChannel<glw::GLbyte>(p, channel, col);
257 writeToUnsignedChannel<glw::GLushort>(p, channel, col);
260 write3Channel<glw::GLushort, 5, 6, 5, 11, 5, 0>(p, channel, col);
263 writeToSignedChannel<glw::GLshort>(p, channel, col);
266 writeToUnsignedChannel<glw::GLuint>(p, channel, col);
269 write4Channel<glw::GLuint, 2, 10, 10, 10, 30, 20, 10, 0>(p, 3 - channel, col);
272 write11F_11F_10F_Channel(p, channel, col);
275 write4Channel<glw::GLushort, 4, 4, 4, 4, 12, 8, 4, 0>(p, channel, col);
278 write4Channel<glw::GLushort, 5, 5, 5, 1, 11, 6, 1, 0>(p, channel, col);
281 writeToSignedChannel<glw::GLint>(p, channel, col);
284 writeToHalfFloatChannel(p, channel, col);
287 writeToFloatChannel(p, channel, col);
295 void TexImageUtils::writeToUnsignedChannel(glw::GLubyte *p, int channel, glw::GLdouble col)
300 const glw::GLdouble d_value = col * d_max;
309 void TexImageUtils::writeToSignedChannel(glw::GLubyte *p, int channel, glw::GLdouble col)
314 const glw::GLdouble d_value = col * d_max;
322 void TexImageUtils::writeToFloatChannel(glw::GLubyte *p, int channel, glw::GLdouble col)
324 const glw::GLfloat t_value = (glw::GLfloat)col;
331 void TexImageUtils::writeToHalfFloatChannel(glw::GLubyte *p, int channel, glw::GLdouble col)
335 tcu::Float16 val(col);
343 void TexImageUtils::write3Channel(glw::GLubyte *p, int channel, glw::GLdouble col)
378 const glw::GLdouble d_value = col * d_max;
391 void TexImageUtils::write4Channel(glw::GLubyte *p, int channel, glw::GLdouble col)
432 const glw::GLdouble d_value = col * d_max;
440 void TexImageUtils::write11F_11F_10F_Channel(glw::GLubyte *p, int channel, glw::GLdouble col)
448 tcu::Float<deUint32, 5, 6, 15, tcu::FLOAT_SUPPORT_DENORM> val(col);
456 tcu::Float<deUint32, 5, 6, 15, tcu::FLOAT_SUPPORT_DENORM> val(col);
464 tcu::Float<deUint32, 5, 5, 15, tcu::FLOAT_SUPPORT_DENORM> val(col);
475 void TexImageUtils::setRefcolour (glu::CallLogWrapper gl, glw::GLdouble col)
484 m_num_channels > 0 ? col : 0.0f,
485 m_num_channels > 1 ? col : 0.0f,
486 m_num_channels > 2 ? col : 0.0f,
493 setUnsignedRefcolour<glw::GLubyte>(gl, col);
496 setSignedRefcolour<glw::GLubyte>(gl, col);
502 setUnsignedRefcolour<glw::GLushort>(gl, col);
505 setSignedRefcolour<glw::GLushort>(gl, col);
508 setUnsignedRefcolour<glw::GLuint>(gl, col);
511 setRGB10A2Refcolour(gl, col);
514 setSignedRefcolour<glw::GLuint>(gl, col);
523 void TexImageUtils::setUnsignedRefcolour (glu::CallLogWrapper gl, glw::GLdouble col)
527 const glw::GLdouble d_value = d_max * col;
543 void TexImageUtils::setSignedRefcolour (glu::CallLogWrapper gl, glw::GLdouble col)
549 const glw::GLdouble d_value = d_max * col;
564 void TexImageUtils::setRGB10A2Refcolour (glu::CallLogWrapper gl, glw::GLdouble col)
569 const glw::GLdouble d_value = (glw::GLdouble)d_max_channel_value * col;
702 glw::GLdouble col = 0.0;
710 col = 1.0;
712 col = 0.0;
715 writePixel(m_src_data + offset, col);
992 glw::GLdouble col = 0.0;
1003 col = 0.125 + (z - m_subcuboid_z0) * 0.125; /* [0.125, 0.250..1.0] */
1005 col = 0.0;
1009 writePixel(m_src_data + offset, col);
1419 deUint64 col = 0x0;
1428 col = 0xffff;
1432 col = 0x0;
1436 src[index] = col;
1445 deUint64 col = 0x0;
1460 col = 0xffffffffffffffff; /* (1.0, 1.0, 1.0) */
1464 col = 0x0; /* (0.0, 0.0, 0.0) */
1469 src[2 * index + 1] = col;
1800 deUint64 col = 0x0;
1811 col = col_list[z % 8];
1813 col = 0x0;
1818 src[index] = col;
1839 deUint64 col = 0x0;
1857 col = col_list[z % 8];
1859 col = 0x0;
1866 src[2 * index + 1] = col;