Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.6.X, 2017.1.X
Votes
0
Found in
2017.2.0b2
Issue ID
933768
Regression
Yes
D3D11 errors when debugging with Visual Studio and Camera having HDR enabled and depth-only clear
To reproduce:
1. Download attached "D3D errors with hdr RT and depth-only clear.zip" project.
2. Open Visual Studio.
3. Open Unity.exe trough visual studio by going to File->Open->Project/Solution.
4. In solution explorer right click on Unity and go to properties.
5. In Arguments Section add the following argument: -force-d3d11-debug
6. Press Start to debug the process.
7. When Unity loads up, open downloaded project.
8. Notice Output window in visual studio.
Expected result: No errors appear in the output.
Actual result: D3D11 ERROR appears in the output.
Reproduced with: 2017.3.0a1, 2017.2.0b4, 2017.1.0p2, 5.6.2p4, 5.6.0p4.
Not reproduced with: 5.6.0p3. 5.5.4p1.
Regression introduced in: 5.6.0p4.
Notes: Happens when enabling atleast one of these option on Camera component : Allow HDR, Allow MSAA or changing Clear Flags to Depth only option.
-D3D11 ERROR: ID3D11DeviceContext::OMSetRenderTargets: The RenderTargetView at slot 0 is not compatible with the DepthStencilView. DepthStencilViews may only be used with RenderTargetViews if the effective dimensions of the Views are equal, as well as the Resource types, multisample count, and multisample quality. The RenderTargetView at slot 0 has (w:256,h:256,as:1), while the Resource is a Texture2D with (mc:1,mq:0). The DepthStencilView has (w:256,h:256,as:1), while the Resource is a Texture2D with (mc:2,mq:0). [ STATE_SETTING ERROR #388: OMSETRENDERTARGETS_INVALIDVIEW]
Verified with 2017.2.0b9
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The hover selection/highlight of items in the Insert button dropdown and the Documentation button dropdown are hard to see when hovered using the Light Editor theme
- NullReferenceExceptions appear when clicking to rename and then deleting the only GameObject in a scene
- Crash on "core::base_hash_set" when using nested [SerializeReference] fields in List<T> structures
- A ghost Game Window and multiple errors appear in the Editor when a Render Texture used by a Camera's "Target Texture" property is deleted
- Color Picker feels less smooth when dragging a Variables Color property in UI Builder Inspector
Add comment