mmoult / spirv-interpreter Goto Github PK
View Code? Open in Web Editor NEWExecutes a SPIR-V shader/kernel, producing results for given inputs.
License: Mozilla Public License 2.0
Executes a SPIR-V shader/kernel, producing results for given inputs.
License: Mozilla Public License 2.0
If we want to be spec compliant as we say, we should allow for recursion. Data must exist in the data array, not any stack frame, but we can have a list of ids in the stack frame which can be popped off at the OpReturn. We can also have a Stacked Data type which holds the bottom Data and the top Data (at the return, we pop off the top data and replace the Stacked with its bottom).
This will take some refactoring, but should be fairly straightforward.
The SPIR-V generator for HLSL is bound to produce different SPIR-V examples than glslang. It would be good for the sake of variety to include some HLSL-derived examples.
Investigate possible bugs in format (YAML, JSON) parsing and printing. I suspect there may be some issues with parsing after comments, but I don't have any test cases (which is part of the problem).
Add test cases formally in the test
directory.
I found a couple similar repositories:
Neither have been updated in the last year, but I should probably check out their capabilities to see how to differentiate and justify this project.
For some compute shaders, multiple invocations may be run. The debugger goes through each and dutifully stops on each invocation when a breakpoint is set.
Add functionality to specify which invocations are relevant.
Compute shaders may need multiple invocations. It would be best to handle these in parallel which would make barriers much simpler. The difficult part will be diverging control flow and handling multiple data arrays.
Compute shaders should still have 1 input and 1 output despite running multiple invocations. No plans to implement multiple invocations of fragment or vertex shaders since it wouldn't save much work (only parsing of the program I think).
Support for FP64 (double) and FP16 (half) for example. Probably should use some kind of use mask in the copyFrom method. Also, need to bump primitive values up (for example, data.fp32 -> data.fp64).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.