Skip to content

Commit

Permalink
add gl_Position to spec.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanderc committed Dec 6, 2023
1 parent 353f62e commit 1078f26
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 75 deletions.
6 changes: 5 additions & 1 deletion spec/gen_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,18 @@ def process_docs_gl_file(path):
variable['description'] = description
variable['versions'] = version_support[0]
variables.append(variable)
if 'gl_Position' in path:
variable = { 'name': 'gl_Position', 'type': 'vec4' }
variable['description'] = description
variable['versions'] = version_support[0]
variables.append(variable)
else:
for i, node in enumerate(soup.find_all(attrs={'class':'funcprototype-table'})):
prototype = parse_prototype(node.getText())
prototype['description'] = description
prototype['versions'] = version_support[min(i, len(version_support) - 1)]
functions.append(prototype)


def paragraph_to_markdown(paragraph):
if paragraph.math is not None and paragraph.math.mtable is not None:
return '```\n' + expand_math(paragraph.math.mtable).replace('δ ', 'δ') + '\n```\n'
Expand Down
Loading

0 comments on commit 1078f26

Please sign in to comment.