Skip to content

Generated shaders #9

Description

@ScanMountGoat

Rendering code cannot be predicted accurately based on parameters for all shaders. Generated WGSL shader code from a database of compiled shaders will resolve most of the existing rendering issues. This should also enable support for accurate rendering of materials like the world of light materials. This has already been successfully implemented for xc3_wgpu and sm4sh_wgpu.

  • improve shader annotation for uniform buffers
  • convert shaders to the expr types defined in xc3_shader
  • generate a binary shader database
  • generate WGSL code in ssbh_wgpu using the database
  • initialize uniform buffer parameters and textures
  • render settings for generated code?
  • define shader queries to simplify generated code and reduce the shader database size

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions