├── .gitattributes ├── .github └── FUNDING.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── example.html ├── package.json ├── rollup.config.js ├── src ├── ast │ └── parse_context.ts ├── exec │ ├── builtin_functions.ts │ ├── command.ts │ ├── exec_context.ts │ ├── exec_interface.ts │ ├── exec_stack.ts │ └── stack_frame.ts ├── index.ts ├── reflect │ ├── info.ts │ └── reflect.ts ├── utils │ ├── cast.ts │ ├── float.ts │ ├── matrix.ts │ ├── texture_format_info.ts │ └── texture_sample.ts ├── wgsl_ast.ts ├── wgsl_debug.ts ├── wgsl_exec.ts ├── wgsl_parser.ts ├── wgsl_reflect.ts └── wgsl_scanner.ts ├── test ├── index.html ├── test.css ├── test.js ├── test_all.js ├── test_node.js └── tests │ ├── struct.js │ ├── struct_layout.js │ ├── test_debug.js │ ├── test_exec.js │ ├── test_parser.js │ ├── test_reflect.js │ └── test_scanner.js ├── tsconfig.json ├── types ├── ast │ ├── base_node.d.ts │ ├── iexpression.d.ts │ └── parse_context.d.ts ├── exec │ ├── base_data.d.ts │ ├── builtin_functions.d.ts │ ├── command.d.ts │ ├── data.d.ts │ ├── exec_context.d.ts │ ├── exec_interface.d.ts │ ├── exec_stack.d.ts │ ├── stack_frame.d.ts │ ├── typed_data.d.ts │ └── util.d.ts ├── index.d.ts ├── reflect │ ├── get_type_name.d.ts │ ├── info.d.ts │ └── reflect.d.ts ├── utils │ ├── base_node.d.ts │ ├── cast.d.ts │ ├── float.d.ts │ ├── matrix.d.ts │ ├── texture_format_info.d.ts │ └── texture_sample.d.ts ├── wgsl_ast.d.ts ├── wgsl_debug.d.ts ├── wgsl_exec.d.ts ├── wgsl_parser.d.ts ├── wgsl_reflect.d.ts └── wgsl_scanner.d.ts ├── wgsl_reflect.module.js ├── wgsl_reflect.module.js.map ├── wgsl_reflect.node.js └── wgsl_reflect.node.js.map /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | node_modules 3 | package-lock.json 4 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/README.md -------------------------------------------------------------------------------- /example.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/example.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/ast/parse_context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/ast/parse_context.ts -------------------------------------------------------------------------------- /src/exec/builtin_functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/exec/builtin_functions.ts -------------------------------------------------------------------------------- /src/exec/command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/exec/command.ts -------------------------------------------------------------------------------- /src/exec/exec_context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/exec/exec_context.ts -------------------------------------------------------------------------------- /src/exec/exec_interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/exec/exec_interface.ts -------------------------------------------------------------------------------- /src/exec/exec_stack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/exec/exec_stack.ts -------------------------------------------------------------------------------- /src/exec/stack_frame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/exec/stack_frame.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/reflect/info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/reflect/info.ts -------------------------------------------------------------------------------- /src/reflect/reflect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/reflect/reflect.ts -------------------------------------------------------------------------------- /src/utils/cast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/utils/cast.ts -------------------------------------------------------------------------------- /src/utils/float.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/utils/float.ts -------------------------------------------------------------------------------- /src/utils/matrix.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/utils/matrix.ts -------------------------------------------------------------------------------- /src/utils/texture_format_info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/utils/texture_format_info.ts -------------------------------------------------------------------------------- /src/utils/texture_sample.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/utils/texture_sample.ts -------------------------------------------------------------------------------- /src/wgsl_ast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/wgsl_ast.ts -------------------------------------------------------------------------------- /src/wgsl_debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/wgsl_debug.ts -------------------------------------------------------------------------------- /src/wgsl_exec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/wgsl_exec.ts -------------------------------------------------------------------------------- /src/wgsl_parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/wgsl_parser.ts -------------------------------------------------------------------------------- /src/wgsl_reflect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/wgsl_reflect.ts -------------------------------------------------------------------------------- /src/wgsl_scanner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/src/wgsl_scanner.ts -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/index.html -------------------------------------------------------------------------------- /test/test.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/test.css -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/test.js -------------------------------------------------------------------------------- /test/test_all.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/test_all.js -------------------------------------------------------------------------------- /test/test_node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/test_node.js -------------------------------------------------------------------------------- /test/tests/struct.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/struct.js -------------------------------------------------------------------------------- /test/tests/struct_layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/struct_layout.js -------------------------------------------------------------------------------- /test/tests/test_debug.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/test_debug.js -------------------------------------------------------------------------------- /test/tests/test_exec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/test_exec.js -------------------------------------------------------------------------------- /test/tests/test_parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/test_parser.js -------------------------------------------------------------------------------- /test/tests/test_reflect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/test_reflect.js -------------------------------------------------------------------------------- /test/tests/test_scanner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/test/tests/test_scanner.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/ast/base_node.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/ast/base_node.d.ts -------------------------------------------------------------------------------- /types/ast/iexpression.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/ast/iexpression.d.ts -------------------------------------------------------------------------------- /types/ast/parse_context.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/ast/parse_context.d.ts -------------------------------------------------------------------------------- /types/exec/base_data.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/base_data.d.ts -------------------------------------------------------------------------------- /types/exec/builtin_functions.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/builtin_functions.d.ts -------------------------------------------------------------------------------- /types/exec/command.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/command.d.ts -------------------------------------------------------------------------------- /types/exec/data.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/data.d.ts -------------------------------------------------------------------------------- /types/exec/exec_context.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/exec_context.d.ts -------------------------------------------------------------------------------- /types/exec/exec_interface.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/exec_interface.d.ts -------------------------------------------------------------------------------- /types/exec/exec_stack.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/exec_stack.d.ts -------------------------------------------------------------------------------- /types/exec/stack_frame.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/stack_frame.d.ts -------------------------------------------------------------------------------- /types/exec/typed_data.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/typed_data.d.ts -------------------------------------------------------------------------------- /types/exec/util.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/exec/util.d.ts -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/index.d.ts -------------------------------------------------------------------------------- /types/reflect/get_type_name.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/reflect/get_type_name.d.ts -------------------------------------------------------------------------------- /types/reflect/info.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/reflect/info.d.ts -------------------------------------------------------------------------------- /types/reflect/reflect.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/reflect/reflect.d.ts -------------------------------------------------------------------------------- /types/utils/base_node.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/utils/base_node.d.ts -------------------------------------------------------------------------------- /types/utils/cast.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/utils/cast.d.ts -------------------------------------------------------------------------------- /types/utils/float.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/utils/float.d.ts -------------------------------------------------------------------------------- /types/utils/matrix.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/utils/matrix.d.ts -------------------------------------------------------------------------------- /types/utils/texture_format_info.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/utils/texture_format_info.d.ts -------------------------------------------------------------------------------- /types/utils/texture_sample.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/utils/texture_sample.d.ts -------------------------------------------------------------------------------- /types/wgsl_ast.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/wgsl_ast.d.ts -------------------------------------------------------------------------------- /types/wgsl_debug.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/wgsl_debug.d.ts -------------------------------------------------------------------------------- /types/wgsl_exec.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/wgsl_exec.d.ts -------------------------------------------------------------------------------- /types/wgsl_parser.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/wgsl_parser.d.ts -------------------------------------------------------------------------------- /types/wgsl_reflect.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/wgsl_reflect.d.ts -------------------------------------------------------------------------------- /types/wgsl_scanner.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/types/wgsl_scanner.d.ts -------------------------------------------------------------------------------- /wgsl_reflect.module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/wgsl_reflect.module.js -------------------------------------------------------------------------------- /wgsl_reflect.module.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/wgsl_reflect.module.js.map -------------------------------------------------------------------------------- /wgsl_reflect.node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/wgsl_reflect.node.js -------------------------------------------------------------------------------- /wgsl_reflect.node.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brendan-duncan/wgsl_reflect/HEAD/wgsl_reflect.node.js.map --------------------------------------------------------------------------------