diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-10-23 10:21:24 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-10-24 10:03:20 +0200 |
commit | 4106275a7fc9ab3abe2fa2ca0b107a3e96e36ca0 (patch) | |
tree | 7bf6f6c4381481682ba5505ae423d3e670448dd4 /tests/auto/corelib/tools | |
parent | cc631c15a00f26fa8f6aa703fd7cf9e715be8f3c (diff) |
rhi: metal: Fix and clean up committing resource bindings
Make it readable by using names instead of mere indices for the stages.
There is an important fix in there as well: when in a render pass, only
resource for VERTEX and FRAGMENT are taken into account, while in a compute
pass those are skipped. This ensures that we do not send messages to a nil or
invalid MTLRender/ComputeCommandEncoder. (nil would not be an error but the
other is fatal)
Task-number: QTBUG-79447
Change-Id: Ibef108cb7c82b5b0fdd2a299cd89fbebe8c3606a
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools')
0 files changed, 0 insertions, 0 deletions