// Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once namespace embree { /* adjust discret tessellation level for feature-adaptive pre-subdivision */ __forceinline float adjustTessellationLevel(float l, const size_t sublevel) { for (size_t i=0; i= 2); const float inv_low_rate = rcp((float)(low_rate-1)); const unsigned int dy = low_rate - 1; const unsigned int dx = high_rate - 1; int p = 2*dy-dx; unsigned int offset = 0; unsigned int y = 0; float value = 0.0f; for(unsigned int x=0;x