Prevent D3D12 debug layer error with env.maps


Prevent the debug layer message

  Placed resources, reserved resources, or committed resources with
  D3D12_HEAP_FLAG_CREATE_NOT_ZEROED flag with either render target
  or depth stencil flags must be initialized with a
  Discard/Clear/Copy operations before other operations are supported.

To this by doing something (anything, like a clear) with the unused
mip levels.

Pick-to: 6.12 6.11 6.8
Change-Id: If6fb1e6854e7a10d81a04fa6dcadf38cce4a1c75
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit3cb94b6159db81a84a98004dd00021ce2b9a393a
parentc662dba7fcd24bccc29dfea4b826835e80e480e7
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeMon, 28 Sep 2026 14:02:04 +0000