AnsweredAssumed Answered

Warnings when using LocationViewshed

Question asked by on Jan 4, 2018
Latest reply on Jan 8, 2018 by LDanzinger-esristaff



I've recently upgraded to the latest SDK and started using the LocationViewShed.

That was when I started getting the following warnings repeatedly:


D3D11 WARNING: ID3D11DeviceContext::OMSetRenderTargets: Resource being set to OM RenderTarget slot 0 is still bound on input! [ STATE_SETTING WARNING #9: DEVICE_OMSETRENDERTARGETS_HAZARD]

D3D11 WARNING: ID3D11DeviceContext::OMSetRenderTargets[AndUnorderedAccessViews]: Forcing PS shader resource slot 1 to NULL. [ STATE_SETTING WARNING #7: DEVICE_PSSETSHADERRESOURCES_HAZARD]


I've disabled everything else and left only the very straight forward creation of the LocationViewShed but the warnings remain. If I disable the LocationViewShed creation - they are gone.

Besides the warnings, it seems to be working fine.


This is the creation code (The actual values are in comments):

if (nullptr == m_locationViewshed)    {
       m_locationViewshed = new LocationViewshed(m_stSystemPosition.location,
static_cast<double>(m_stSystemPosition.fAzimuth), //0.0
                                 static_cast<double>(m_stSystemPosition.fElevation) + 90, //85.0
                                 static_cast<double>(m_stSystemPosition.fFovDeg), //30.0
                                 SYSTEM_VERTICAL_FOV_DEG, //45
                                 SYSTEM_RANGE_2_METERS, //1400


Any ides what causes the warnings and how to get rid of them?