MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / clampIndex

Function clampIndex

cmp_core/shaders/bc7_encode_kernel.cpp:419–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419INLINE CGV_UINT8 clampIndex(CGV_UINT8 v, CGV_UINT8 a, CGV_UINT8 b)
420{
421 if (v < a)
422 return a;
423 else if (v > b)
424 return b;
425 return v;
426}
427
428INLINE CGV_UINT32 shift_right_uint32(CGV_UINT32 v, CGU_INT bits)
429{

Callers 2

GetProjectedIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected