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

Method getvalue

cmp_core/shaders/bc6_encode_kernel.h:295–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 }
294
295 CGU_INT getvalue(CGU_INT start, CGU_INT bitsize)
296 {
297 CGU_INT value = 0;
298 CGU_INT end = start + bitsize - 1;
299 for (; end >= start; end--)
300 {
301 value |= m_bits[end] ? 1 : 0;
302 if (end > start)
303 value <<= 1;
304 }
305
306 return value;
307 }
308
309 void setvalue(CGU_INT start, CGU_INT bitsize, CGU_INT value, CGU_INT maskshift = 0)
310 {

Callers 1

extract_formatFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected