Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

Parameters' window for struct default constructor shows static enum as arguments #310

Open MrcSnm opened 1 year ago

MrcSnm commented 1 year ago

The following struct shows in the default constructor as if floatsCount and quadsCount were arguments.

struct HipTextRendererVertex
{
    import hip.math.vector;
    Vector3 vPosition;
    @HipShaderInputPadding float _;
    Vector2 vTexST;

    static enum size_t floatsCount = (HipTextRendererVertex.sizeof / float.sizeof);
    static enum size_t quadsCount = floatsCount*4;

}
image