Commit 06c9e44
[dawn][native] Assert Pipeline Is Set Before Applying Immediates
Replace early return with an assertion to ensure that the pipeline is
set before applying immediate constants in D3D11, D3D12, and Vulkan
backends.
This change helps catch potential issues where immediate constants are
attempted to be applied without a valid pipeline.
Bug: 366291600
Change-Id: Icf4f988909ac63933056b18031206f6201f9cc75
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/282215
Commit-Queue: Shaobo Yan <shaoboyan@microsoft.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>1 parent 979609b commit 06c9e44
File tree
3 files changed
+6
-11
lines changed- src/dawn/native
- d3d11
- d3d12
- vulkan
3 files changed
+6
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 227 | + | |
231 | 228 | | |
232 | | - | |
| 229 | + | |
233 | 230 | | |
234 | 231 | | |
235 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
| 417 | + | |
419 | 418 | | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 234 | + | |
238 | 235 | | |
| 236 | + | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
| |||
0 commit comments