Skip to content

Need better management for compute shaders #2

@ymd-h

Description

@ymd-h

In Vulkan, all pipelines require corresponding SPIR-V (intermediate) binaries.
We write (a lot of) GLSL (.comp) and compile them to SPIR-V (.spv) during build.

As far as I know, GLSL doesn't have library (import/include) system, so that there are so many duplicated codes.

Additionally, there is no template nor generics, therefore if we want to support other data type such as 16bit float, we have to write all supported operation codes once again.

Apparently, we need better frontend language and/or build system for SPIR-V generation, otherwise we cannot maintain them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions