Lines Matching defs:ndx
1096 for (deUint32 ndx = 0; ndx < componentCount; ndx++)
1098 if (!channelMask[ndx])
1099 clearColor.int32[ndx] = std::numeric_limits<deInt32>::min();
1101 clearColor.uint32[ndx] = rng.getBool() ? 1u : 0u;
1108 for (deUint32 ndx = 0; ndx < componentCount; ndx++)
1110 if (!channelMask[ndx])
1111 clearColor.uint32[ndx] = std::numeric_limits<deUint32>::max();
1113 clearColor.uint32[ndx] = rng.getBool() ? 1u : 0u;
1122 for (deUint32 ndx = 0; ndx < componentCount; ndx++)
1124 if (!channelMask[ndx])
1125 clearColor.float32[ndx] = clearNan;
1127 clearColor.float32[ndx] = rng.getBool() ? 1.0f : 0.0f;
1614 deUint32 getAttachmentNdx (const vector<AttachmentReference>& colorAttachments, size_t ndx)
1616 return (colorAttachments[ndx].getAttachment() == VK_ATTACHMENT_UNUSED) ? (deUint32)ndx : colorAttachments[ndx].getAttachment();
3351 void setUndefined (size_t ndx);
3352 void setValue (size_t ndx, bool value);
3353 Maybe<bool> getValue (size_t ndx) const;
3370 for (size_t ndx = 0; ndx < DE_LENGTH_OF_ARRAY(values); ndx++)
3372 if (values[ndx])
3373 setValue(ndx, *values[ndx]);
3375 setUndefined(ndx);
3381 void PixelValue::setUndefined (size_t ndx)
3383 DE_ASSERT(ndx < 4);
3386 m_status &= (deUint16)~(0x1u << (deUint16)(ndx * 2));
3390 void PixelValue::setValue (size_t ndx, bool value)
3392 DE_ASSERT(ndx < 4);
3395 m_status = (deUint16)(m_status | (deUint16)(0x1u << (ndx * 2)));
3398 m_status = (deUint16)(m_status | (deUint16)(0x1u << (ndx * 2 + 1)));
3400 m_status &= (deUint16)~(0x1u << (deUint16)(ndx * 2 + 1));
3405 Maybe<bool> PixelValue::getValue (size_t ndx) const
3407 DE_ASSERT(ndx < 4);
3410 if ((m_status & (0x1u << (deUint16)(ndx * 2))) != 0)
3412 return just((m_status & (0x1u << (deUint32)(ndx * 2 + 1))) != 0);
5910 size_t ndx = ((size_t)rng.getUint32()) % values.size();
5913 for (; ndx > 0; ndx--)