Commit
·
dac999c
1
Parent(s):
023f340
Write feedback as a DDS rather than a NPY file
Browse filesThis is more consistent with the other outputs and also allows feeding
the file back as an input for another frame.
Change-Id: Ib41454ee02f1f403dab52b6e456ee6b22e6cc286
- scenario/scenario.json +27 -4
scenario/scenario.json
CHANGED
|
@@ -100,7 +100,7 @@
|
|
| 100 |
{
|
| 101 |
"set": 0,
|
| 102 |
"id": 1,
|
| 103 |
-
"resource_ref": "
|
| 104 |
},
|
| 105 |
{
|
| 106 |
"set": 0,
|
|
@@ -493,17 +493,40 @@
|
|
| 493 |
}
|
| 494 |
},
|
| 495 |
{
|
| 496 |
-
"
|
| 497 |
"uid": "out_feedback",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
"dims": [
|
| 499 |
1,
|
| 500 |
544,
|
| 501 |
960,
|
| 502 |
4
|
| 503 |
],
|
| 504 |
-
"dst": "./out_feedback.npy",
|
| 505 |
"format": "VK_FORMAT_R8_SINT",
|
| 506 |
-
"shader_access": "
|
|
|
|
|
|
|
|
|
|
| 507 |
"tiling": "LINEAR"
|
| 508 |
}
|
| 509 |
},
|
|
|
|
| 100 |
{
|
| 101 |
"set": 0,
|
| 102 |
"id": 1,
|
| 103 |
+
"resource_ref": "out_feedback_aliaser"
|
| 104 |
},
|
| 105 |
{
|
| 106 |
"set": 0,
|
|
|
|
| 493 |
}
|
| 494 |
},
|
| 495 |
{
|
| 496 |
+
"image": {
|
| 497 |
"uid": "out_feedback",
|
| 498 |
+
"dims": [
|
| 499 |
+
1,
|
| 500 |
+
960,
|
| 501 |
+
544,
|
| 502 |
+
1
|
| 503 |
+
],
|
| 504 |
+
"dst": "./out_feedback.dds",
|
| 505 |
+
"format": "VK_FORMAT_R8G8B8A8_SNORM",
|
| 506 |
+
"shader_access": "writeonly",
|
| 507 |
+
"mips": 1,
|
| 508 |
+
"min_filter": "LINEAR",
|
| 509 |
+
"mag_filter": "LINEAR",
|
| 510 |
+
"mip_filter": "NEAREST",
|
| 511 |
+
"border_address_mode": "CLAMP_BORDER",
|
| 512 |
+
"border_color": "FLOAT_TRANSPARENT_BLACK",
|
| 513 |
+
"tiling": "LINEAR"
|
| 514 |
+
}
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"tensor": {
|
| 518 |
+
"uid": "out_feedback_aliaser",
|
| 519 |
"dims": [
|
| 520 |
1,
|
| 521 |
544,
|
| 522 |
960,
|
| 523 |
4
|
| 524 |
],
|
|
|
|
| 525 |
"format": "VK_FORMAT_R8_SINT",
|
| 526 |
+
"shader_access": "readwrite",
|
| 527 |
+
"alias_target": {
|
| 528 |
+
"resource_ref": "out_feedback"
|
| 529 |
+
},
|
| 530 |
"tiling": "LINEAR"
|
| 531 |
}
|
| 532 |
},
|