Skip to content

jglrxavpok/SpirvSpecToJson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpirvSpecToJson

SPIR-V HTML Specification to JSON converter

Direct Link

  • TODO

Supported Specs

(Currently all work-in-progress)

(Official spec folder: https://www.khronos.org/registry/spir-v/specs/)

JSON Format

{
  "Metadata": {
    "Title": "SPIR-V Specification (Provisional)",
    "Author": "John Kessenich, LunarG; Boaz Ouriel, Intel",
    "Revnumber": "version 0.99, revision 29 in progress",
    "LastUpdate": "Last updated 2015-02-19 18:30:13 MST"
  },
  "OpCodes": [
    ... one object per op ...
  ],
  "Enums": [
    ... one object per enum ...
  ],
  "Extensions": [
    ... one object per extended instruction set ...
  ]
}

Example for Instruction: OpExtInst

{
  "Name": "OpExtInst",
  "Category": "Extension",
  "Description": "... description with html tags ...",
  "DescriptionPlain": "... description without html tags ...",
  "Capabilities": [],
  "WordCount": "5 + variable",
  "WordCountFix": 5,
  "OpCode": 44,
  "HasVariableWordCount": true,
  "HasResult": true,
  "HasResultType": true,
  "Operands": [
    {
      "Name": "ResultType",
      "Type": "ID"
    },
    {
      "Name": "Result",
      "Type": "ID"
    },
    {
      "Name": "Set",
      "Type": "ID"
    },
    {
      "Name": "Instruction",
      "Type": "LiteralNumber"
    },
    {
      "Name": "Operands",
      "Type": "ID[]"
    }
  ]
}

Example for Enumeration: Decoration

TODO

Example for Extended Instruction Set: GLSL 450

TODO

About

SPIR-V HTML Specification to JSON converter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 97.7%
  • C# 2.3%