Skip to content

Nim to LLVM-IR to SPIR-V -> Is it feasible? #50

@heysokam

Description

@heysokam

Hi there.
I've been looking for a way to get nim code into shaders for a while.
I know of treeform/shady, but its made for glsl-opengl only. And I use mostly wgpu (and learning vk a bit).

Both wgpu and vulkan support spirv, and I was wondering if the code generated by this lib would be usable for conversion from llvm to spirv.
There is a converter on Khronos's github, but I know that shader lang has special requirements (don't know what thought, my knowledge of compiler internals is very low).

Do you think this conversion would be possible, using nlvm?
Could the IR generated by this compiler be used for that task?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions