Skip to content

Commit 70e4ae2

Browse files
committed
Fix comment ordering
1 parent 64dfa2e commit 70e4ae2

File tree

5 files changed

+642
-639
lines changed

5 files changed

+642
-639
lines changed

tools/deviceGen/DeviceGen.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ def buildComment(comment, res, sectionName):
4242
if returnObj and "require" in returnObj:
4343
require = require or returnObj["require"]
4444

45+
temp_comment_res = []
46+
4547
for commentLine in comment['comment']:
46-
temp_res.insert(0, f" // {'[REQUIRE]' if require else ''}{commentLine}")
47-
for line in temp_res:
48+
temp_comment_res.append(f" // {'[REQUIRE]' if require else ''}{commentLine}")
49+
50+
temp_comment_res.extend(temp_res)
51+
52+
for line in temp_comment_res:
4853
res.append(line)
4954

5055
def buildVariable(variable, res, sectionName, insideComment = False):

tools/deviceGen/input/device_features.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,11 @@
20402040
{
20412041
"comment": [
20422042
"[TODO LATER] Requires API changes",
2043-
"VK_NV_fragment_coverage_to_color",
2043+
"VK_NV_fragment_coverage_to_color"
2044+
]
2045+
},
2046+
{
2047+
"comment": [
20442048
"AccelerationStructureFeaturesKHR",
20452049
"VK_KHR_acceleration_structure"
20462050
],

0 commit comments

Comments
 (0)