serve-d
serve-d copied to clipboard
Parameters' window for struct default constructor shows static enum as arguments
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;
}