Lines Matching defs:value

275 inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type)
282 case TextureFormat::SNORM_INT8: return de::max(-1.0f, (float)*((const deInt8*)value) / 127.0f);
283 case TextureFormat::SNORM_INT16: return de::max(-1.0f, (float)*((const deInt16*)value) / 32767.0f);
284 case TextureFormat::SNORM_INT32: return de::max(-1.0f, (float)*((const deInt32*)value) / 2147483647.0f);
285 case TextureFormat::UNORM_INT8: return (float)*((const deUint8*)value) / 255.0f;
286 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f;
287 case TextureFormat::UNORM_INT24: return (float)readUint24(value) / 16777215.0f;
288 case TextureFormat::UNORM_INT32: return (float)*((const deUint32*)value) / 4294967295.0f;
289 case TextureFormat::SIGNED_INT8: return (float)*((const deInt8*)value);
290 case TextureFormat::SIGNED_INT16: return (float)*((const deInt16*)value);
291 case TextureFormat::SIGNED_INT32: return (float)*((const deInt32*)value);
292 case TextureFormat::SIGNED_INT64: return (float)*((const deInt64*)value);
293 case TextureFormat::UNSIGNED_INT8: return (float)*((const deUint8*)value);
294 case TextureFormat::UNSIGNED_INT16: return (float)*((const deUint16*)value);
295 case TextureFormat::UNSIGNED_INT24: return (float)readUint24(value);
296 case TextureFormat::UNSIGNED_INT32: return (float)*((const deUint32*)value);
297 case TextureFormat::UNSIGNED_INT64: return (float)*((const deUint64*)value);
298 case TextureFormat::HALF_FLOAT: return deFloat16To32(*(const deFloat16*)value);
299 case TextureFormat::FLOAT: return *((const float*)value);
300 case TextureFormat::FLOAT64: return (float)*((const double*)value);
301 case TextureFormat::UNORM_SHORT_10: return (float)((*((const deUint16*)value)) >> 6u) / 1023.0f;
302 case TextureFormat::UNORM_SHORT_12: return (float)((*((const deUint16*)value)) >> 4u) / 4095.0f;
303 case TextureFormat::USCALED_INT8: return (float)*((const deUint8*)value);
304 case TextureFormat::USCALED_INT16: return (float)*((const deUint16*)value);
305 case TextureFormat::SSCALED_INT8: return (float)*((const deInt8*)value);
306 case TextureFormat::SSCALED_INT16: return (float)*((const deInt16*)value);
314 inline T channelToIntType (const deUint8* value, TextureFormat::ChannelType type)
321 case TextureFormat::SNORM_INT8: return (T)*((const deInt8*)value);
322 case TextureFormat::SNORM_INT16: return (T)*((const deInt16*)value);
323 case TextureFormat::SNORM_INT32: return (T)*((const deInt32*)value);
324 case TextureFormat::UNORM_INT8: return (T)*((const deUint8*)value);
325 case TextureFormat::UNORM_INT16: return (T)*((const deUint16*)value);
326 case TextureFormat::UNORM_INT24: return (T)readUint24(value);
327 case TextureFormat::UNORM_INT32: return (T)*((const deUint32*)value);
328 case TextureFormat::SIGNED_INT8: return (T)*((const deInt8*)value);
329 case TextureFormat::SIGNED_INT16: return (T)*((const deInt16*)value);
330 case TextureFormat::SIGNED_INT32: return (T)*((const deInt32*)value);
331 case TextureFormat::SIGNED_INT64: return (T)*((const deInt64*)value);
332 case TextureFormat::UNSIGNED_INT8: return (T)*((const deUint8*)value);
333 case TextureFormat::UNSIGNED_INT16: return (T)*((const deUint16*)value);
334 case TextureFormat::UNSIGNED_INT24: return (T)readUint24(value);
335 case TextureFormat::UNSIGNED_INT32: return (T)*((const deUint32*)value);
336 case TextureFormat::UNSIGNED_INT64: return (T)*((const deUint64*)value);
337 case TextureFormat::HALF_FLOAT: return (T)deFloat16To32(*(const deFloat16*)value);
338 case TextureFormat::FLOAT: return (T)*((const float*)value);
339 case TextureFormat::FLOAT64: return (T)*((const double*)value);
340 case TextureFormat::UNORM_SHORT_10: return (T)((*(((const deUint16*)value))) >> 6u);
341 case TextureFormat::UNORM_SHORT_12: return (T)((*(((const deUint16*)value))) >> 4u);
342 case TextureFormat::USCALED_INT8: return (T)*((const deUint8*)value);
343 case TextureFormat::USCALED_INT16: return (T)*((const deUint16*)value);
344 case TextureFormat::SSCALED_INT8: return (T)*((const deInt8*)value);
345 case TextureFormat::SSCALED_INT16: return (T)*((const deInt16*)value);
352 inline uint64_t retrieveChannelBitsAsUint64 (const deUint8* value, TextureFormat::ChannelType type)
359 case TextureFormat::SNORM_INT8: return (uint64_t)*((const uint8_t*)value);
360 case TextureFormat::SNORM_INT16: return (uint64_t)*((const uint16_t*)value);
361 case TextureFormat::SNORM_INT32: return (uint64_t)*((const uint32_t*)value);
362 case TextureFormat::UNORM_INT8: return (uint64_t)*((const uint8_t*)value);
363 case TextureFormat::UNORM_INT16: return (uint64_t)*((const uint16_t*)value);
364 case TextureFormat::UNORM_INT24: return (uint64_t)readUint24(value);
365 case TextureFormat::UNORM_INT32: return (uint64_t)*((const uint32_t*)value);
366 case TextureFormat::SIGNED_INT8: return (uint64_t)*((const uint8_t*)value);
367 case TextureFormat::SIGNED_INT16: return (uint64_t)*((const uint16_t*)value);
368 case TextureFormat::SIGNED_INT32: return (uint64_t)*((const uint32_t*)value);
369 case TextureFormat::SIGNED_INT64: return (uint64_t)*((const uint64_t*)value);
370 case TextureFormat::UNSIGNED_INT8: return (uint64_t)*((const uint8_t*)value);
371 case TextureFormat::UNSIGNED_INT16: return (uint64_t)*((const uint16_t*)value);
372 case TextureFormat::UNSIGNED_INT24: return (uint64_t)readUint24(value);
373 case TextureFormat::UNSIGNED_INT32: return (uint64_t)*((const uint32_t*)value);
374 case TextureFormat::UNSIGNED_INT64: return (uint64_t)*((const uint64_t*)value);
375 case TextureFormat::HALF_FLOAT: return (uint64_t)*((const uint16_t*)value);
376 case TextureFormat::FLOAT: return (uint64_t)*((const uint32_t*)value);
377 case TextureFormat::FLOAT64: return (uint64_t)*((const uint64_t*)value);
378 case TextureFormat::UNORM_SHORT_10: return (uint64_t)((*((const uint16_t*)value)) >> 6u);
379 case TextureFormat::UNORM_SHORT_12: return (uint64_t)((*((const uint16_t*)value)) >> 4u);
380 case TextureFormat::USCALED_INT8: return (uint64_t)*((const uint8_t*)value);
381 case TextureFormat::USCALED_INT16: return (uint64_t)*((const uint16_t*)value);
382 case TextureFormat::SSCALED_INT8: return (uint64_t)*((const uint8_t*)value);
383 case TextureFormat::SSCALED_INT16: return (uint64_t)*((const uint16_t*)value);
390 inline int channelToInt (const deUint8* value, TextureFormat::ChannelType type)
392 return channelToIntType<int>(value, type);
631 return (l.mode == IMAGEVIEWMINLODMODE_PREFERRED) ? l.value : deFloatFloor(l.value);
2003 const bool clampValues = isFixedPoint; // if comparing against a floating point texture, ref (and value) is not clamped
2662 // The value is relative to baseLevel as the Texture*View was created as the baseLevel being level[0].
2761 // The value is relative to baseLevel as the Texture*View was created as the baseLevel being level[0].
3205 // The value is relative to baseLevel as the Texture*View was created as the baseLevel being level[0].
3251 // In case of a minLodRelative value with fractional part, we need to ponderate the different sample of N level