Giter Club home page Giter Club logo

shadertool_uni's Introduction

shadertool

usage

./shadertool <script/path> [options...]

script layout

.dir1 par1 par2
.dir2 par1 
.dir3 par1
...
.exec
ins1	a, b
ins2	a
ins3	a, b
...

directives

.source name [path|@OPT] - defines frame source

.sink name [path|@OPT] - defines frame sink

.shader name [path|@OPT] - defines frame sink

.exec - begin executable section

instructions

pull reg, source - load frame from source into reg

push sink, reg - store frame into sink from reg

apply shader, [uniform=reg]... - run shader with uniforms and return frame to r0

jmp offset - change pc by relative offset

jmpif offset, [!]cond - change pc by relative offset if cond is true

mov dreg, [sreg|imm|obj.param] - copy value into dreg

add dreg, sreg - add value of sreg to dreg, sets zero flag if dreg is 0

source

main.cc - main logic, loads script file and runs interpreter

cmdline/args - cmdline argument parser

video/frame - structure for holding pixel data

video/frame_source - abstraction of media container, provides frames

video/frame_sink - abstraction of media container, receives frames

fs/remote_path - wrapper for storing path data, supports runtime resolution of references to cmdline arguments

script/file - abstraction of file contents

script/parser - parses script files

script/directives - implementation of directives

script/instructions - implementation of instructions

script/interpreter - interpreter of script files, applies directives and executes instructions

script/register - base class representing default storage type of interpreter

graphics/render_device - abstraction of rendering device, interfaces with OpenGL

graphics/render_target - abstraction of underlying OpenGL structures for receiving frames

graphics/shader - abstraction of shader loading/uploading

graphics/shader_program - abstraction of loaded shader program

shadertool_uni's People

Contributors

dan1338 avatar

Watchers

 avatar

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.