Skip to content

Subgraphs break #11

@C0D3-M4513R

Description

@C0D3-M4513R

If you use a custom Function in a Sub-Graph and then try to use the Sub-Graph, the Shader will fail to compile correctly and complain, that the custom Function is an undeclared identifier.

E.g. (remove the .txt, to get back the original files. I had to add a .txt at the end to make github happy)

Wings_Shader.graphlit.txt
GTE_Float.hlsl.txt
TextureAtlas.subgraphlit.txt

If I try to resolve the error via an import ( #include "/Assets/Virtual_Thread/Wings/GTE_Float.hlsl" in my case), then I get a new wierd error: Shader error in 'Graphlit/Wings_Shader': undeclared identifier 'TransformTexture' at line 431 (on d3d11)

Update:
I tried removing the custom function (>=) with a Step and Cast Float to Bool in the subgraph.
New Subgraph:
TextureAtlas.subgraphlit.txt

However now it complains about CastFloatToBoolNode being an undeclared identifier.
Shader error in 'Graphlit/Wings_Shader': undeclared identifier 'CastFloatToBoolNode' at line 217 (on d3d11)
What am I doing wrong?

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