spirv_cross 0.4.0

Bindings to Khronos' SPIRV-Cross


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

spirv_cross-d

D bindings to Khronos' SPIRV-Cross

Automatically builds and statically links to the C++ library through a provided C wrapper.

On Windows X86 DMD, only mscoff libs are supported. (Dub flag --arch=x86_mscoff)

Example:

import std.stdio;
import spirv_cross;

void main()
{
    auto spirv = cast(immutable(uint)[])import("shader.vert.spv");

    auto cl = new ScCompilerGlsl(spirv);
    scope(exit) cl.dispose();

    auto opts = cl.options;
    opts.ver = 130;
    cl.options = opts;

    writeln(cl.compile());
}
Authors:
  • Remi Thebault
Dependencies:
none
Versions:
0.4.0 2019-Jan-03
0.3.1 2018-Dec-25
0.3.0 2018-Dec-23
0.2.1 2018-Dec-23
0.2.0 2018-Dec-23
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 903 downloads total

Score:
0.0
Short URL:
spirv_cross.dub.pm