D3D12: Ignore the debug warning for vertex buffer out-of-bounds

This adds D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL to
the filter list of debug layer warning messages.

BUG=dawn:1261

Change-Id: Ifd0fdf9eb8314a1b2a4f9cd7d248daf0a92a6c17
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/76920
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jie A Chen <jie.a.chen@intel.com>
This commit is contained in:
jchen10 2022-01-20 07:23:28 +00:00 committed by Dawn LUCI CQ
parent 979faed182
commit 0d415ff26c
1 changed files with 4 additions and 0 deletions

View File

@ -347,6 +347,10 @@ namespace dawn::native::d3d12 {
// get rejected and generate a debug error. Then, we request 0 to get the allowed
// allowed alignment.
D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT,
// WebGPU allows OOB vertex buffer access and relies on D3D12's robust buffer access
// behavior.
D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL,
};
// Create a retrieval filter with a deny list to suppress messages.