m_HTile=newRenderTexture((camera.pixelWidth+7)/8,(camera.pixelHeight+7)/8,0,RenderTextureFormat.R8,RenderTextureReadWrite.Linear);// DXGI_FORMAT_R8_UINT is not supported by Unity
vardesc=hdCamera.renderTextureDesc;
desc.width=(desc.width+7)/8;
desc.height=(desc.height+7)/8;
m_HTile=CoreUtils.CreateRenderTexture(desc,0,RenderTextureFormat.R8,RenderTextureReadWrite.Linear);// DXGI_FORMAT_R8_UINT is not supported by Unity
m_HTile.filterMode=FilterMode.Point;
m_HTile.enableRandomWrite=true;
m_HTile.Create();
{
// Caution: must be same format as m_CameraSssDiffuseLightingBuffer