Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional parsing stages in ShaderLab #2149

Open
Sway007 opened this issue Jun 28, 2024 · 0 comments
Open

Additional parsing stages in ShaderLab #2149

Sway007 opened this issue Jun 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request medium priority Medium priority issue shader Shader related functions
Milestone

Comments

@Sway007
Copy link
Member

Sway007 commented Jun 28, 2024

Is your feature request related to a problem? Please describe.

Additional parsing stages in ShaderLab to achieve on-demand compilation.

graph TD;
    Shader
    SubShader
    ShaderPass
    GLSL
    Shader-- "(Parser1)\nRenderState/Tag\nin SubShader scope,\nkeep other un-compiled text" -->SubShader;
    SubShader-- (Parser2)\nRenderState/Tag\nin ShaderPass scope,\nkeep other un-compiled text -->ShaderPass;
    ShaderPass --(Parser3)--> GLSL

Loading

Current parsing flow

graph TD;
    Shader
    ShaderPass
    GLSL
    Shader-- "(Parser1)\nRenderState/Tag\nin SubShader and ShaderPass scope,\nkeep other un-compiled text" -->ShaderPass;
    ShaderPass --(Parser2)--> GLSL

Loading
@Sway007 Sway007 added enhancement New feature or request shader Shader related functions medium priority Medium priority issue labels Jun 28, 2024
@Sway007 Sway007 added this to the Backlog milestone Jun 28, 2024
@Sway007 Sway007 self-assigned this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority Medium priority issue shader Shader related functions
Projects
None yet
Development

No branches or pull requests

1 participant