Giter VIP home page Giter VIP logo

spirv-interpreter's People

Contributors

mmoult avatar vudu2007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vudu2007

spirv-interpreter's Issues

Allow Recursion

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.

Add HLSL examples

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.

Add better testing for the format parsing / printing

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.

Improve debugging for multiple invocations

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.

Multiple invocations for compute shaders

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).

Other precision widths

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.