Forráskód Böngészése

Disabled overwhelming D3D12 Warning 202 (#18436)

This commit disables the D3D12 Debug Layer Warning
message with code 202, which overwhelms the Logs
with the following message, when the Debug layer is enabled,
for example., when running the Editor in `debug` configuration:
```
D3D12 WARNING: ID3D12CommandList::DrawIndexedInstanced:
 Element [6] in the current Input Layout's declaration references input slot 6,
 but there is no Buffer bound to this slot. This is OK, as reads from an empty
 slot are defined to return 0. It is also possible the developer knows the data
 will not be used anyway. This is only a problem if the developer actually
 intended to bind an input Buffer here. [ EXECUTION WARNING #202:
 COMMAND_LIST_DRAW_VERTEX_BUFFER_NOT_SET]
 ...
 ...
 ...
```

Signed-off-by: galibzon <[email protected]>
galibzon 9 hónapja
szülő
commit
0a2af1fa20

+ 8 - 0
Gems/Atom/RHI/DX12/Code/Source/Platform/Windows/RHI/Device_Windows.cpp

@@ -136,6 +136,14 @@ namespace AZ
             // be valid and possibly find a way to restore this warning to catch other cases that could be invalid.
             disabledMessages.push_back(D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_GPU_WRITTEN_READBACK_RESOURCE_MAPPED);
 
+            // Disabling this message because it is harmless, yet it overwhelms the Editor log when the D3D Debug Layer is enabled.
+            // D3D12 WARNING: ID3D12CommandList::DrawIndexedInstanced: Element [6] in the current Input Layout's declaration references input slot 6,
+            //                but there is no Buffer bound to this slot. This is OK, as reads from an empty slot are defined to return 0.
+            //                It is also possible the developer knows the data will not be used anyway.
+            //                This is only a problem if the developer actually intended to bind an input Buffer here.
+            //                [ EXECUTION WARNING #202: COMMAND_LIST_DRAW_VERTEX_BUFFER_NOT_SET]
+            disabledMessages.push_back(D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_NOT_SET);
+
             // Windows build 10.0.17763 (AKA version 1809) has a bug where the D3D Debug layer throws the error COPY_DESCRIPTORS_INVALID_RANGES when it shouldn't.
             // This was fixed in subsequent builds, however, Amazon IT is still deploying this version to new machines as of the time this comment was written.
             if (IsRunningWindows10_0_17763())