MEMORY_TYPE_SHIFT
return (uint32)memory_type << MEMORY_TYPE_SHIFT;
memory_type = memoryType >> MEMORY_TYPE_SHIFT;