scenario-tweaks (#5)
Browse files- Fix frame_id data type in scenario.json (2c28a10375f60bed9b4961b95ef8176d6f2a0f61)
- Stop writing out_input_tensor.npy (023f34068b863f1d7e72b5fac8617a6bd7680ecc)
- Write feedback as a DDS rather than a NPY file (dac999cfe030221ac44fda9eac8b84b9b6d88b8e)
Co-authored-by: Rob Hughes <[email protected]>
- scenario/scenario.json +29 -7
scenario/scenario.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"commands": [
|
| 3 |
{
|
| 4 |
"mark_boundary": {
|
| 5 |
-
"frame_id":
|
| 6 |
"resources": []
|
| 7 |
}
|
| 8 |
},
|
|
@@ -100,7 +100,7 @@
|
|
| 100 |
{
|
| 101 |
"set": 0,
|
| 102 |
"id": 1,
|
| 103 |
-
"resource_ref": "
|
| 104 |
},
|
| 105 |
{
|
| 106 |
"set": 0,
|
|
@@ -212,7 +212,7 @@
|
|
| 212 |
},
|
| 213 |
{
|
| 214 |
"mark_boundary": {
|
| 215 |
-
"frame_id":
|
| 216 |
"resources": [
|
| 217 |
"out_colour"
|
| 218 |
]
|
|
@@ -467,7 +467,6 @@
|
|
| 467 |
960,
|
| 468 |
12
|
| 469 |
],
|
| 470 |
-
"dst": "./out_input_tensor.npy",
|
| 471 |
"format": "VK_FORMAT_R8_SINT",
|
| 472 |
"shader_access": "readwrite",
|
| 473 |
"tiling": "LINEAR"
|
|
@@ -494,17 +493,40 @@
|
|
| 494 |
}
|
| 495 |
},
|
| 496 |
{
|
| 497 |
-
"
|
| 498 |
"uid": "out_feedback",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 499 |
"dims": [
|
| 500 |
1,
|
| 501 |
544,
|
| 502 |
960,
|
| 503 |
4
|
| 504 |
],
|
| 505 |
-
"dst": "./out_feedback.npy",
|
| 506 |
"format": "VK_FORMAT_R8_SINT",
|
| 507 |
-
"shader_access": "
|
|
|
|
|
|
|
|
|
|
| 508 |
"tiling": "LINEAR"
|
| 509 |
}
|
| 510 |
},
|
|
|
|
| 2 |
"commands": [
|
| 3 |
{
|
| 4 |
"mark_boundary": {
|
| 5 |
+
"frame_id": 0,
|
| 6 |
"resources": []
|
| 7 |
}
|
| 8 |
},
|
|
|
|
| 100 |
{
|
| 101 |
"set": 0,
|
| 102 |
"id": 1,
|
| 103 |
+
"resource_ref": "out_feedback_aliaser"
|
| 104 |
},
|
| 105 |
{
|
| 106 |
"set": 0,
|
|
|
|
| 212 |
},
|
| 213 |
{
|
| 214 |
"mark_boundary": {
|
| 215 |
+
"frame_id": 1,
|
| 216 |
"resources": [
|
| 217 |
"out_colour"
|
| 218 |
]
|
|
|
|
| 467 |
960,
|
| 468 |
12
|
| 469 |
],
|
|
|
|
| 470 |
"format": "VK_FORMAT_R8_SINT",
|
| 471 |
"shader_access": "readwrite",
|
| 472 |
"tiling": "LINEAR"
|
|
|
|
| 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 |
},
|