Skip to content

Shader API #34

Description

@STREGA

Rework Shader API for public consumption.

  • Use a result builder for shader construction
  • Attempt to prevent instance dependent build objects from being used on other shader instances at the compile stage.
    • These objects include custom uniforms, buffer attachments, and buffer destinations.
    • Type constraints?
  • Give shaders a unique identifier that will allow for static caching of generated/built shaders.
  • Give shaders the ability to be changed at runtime and auto recompile, even while being used.
    • Possibly with a MutableXXXXXShader type variant as these won't be cacheable.
  • Fully document and include examples as markdown sheets in SwiftDocC library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions