We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be useful to generate a default constructor for a struct from C++ code, For example
Input:
struct StencilOpDesc { STENCIL_OP StencilFailOp = STENCIL_OP_KEEP; STENCIL_OP StencilDepthFailOp = STENCIL_OP_KEEP; STENCIL_OP StencilPassOp = STENCIL_OP_KEEP; COMPARISON_FUNCTION StencilFunc = COMPARISON_FUNC_ALWAYS; };
Generated:
[StructLayout(LayoutKind.Sequential, Pack = 0)] public partial struct StencilOpDesc { public Diligent.Core.StencilOp StencilFailOp; public Diligent.Core.StencilOp StencilDepthFailOp; public Diligent.Core.StencilOp StencilPassOp; public Diligent.Core.ComparisonFunction StencilFunc; public StencilOpDesc() { StencilFailOp = StencilOp.Keep; StencilDepthFailOp = StencilOp.Keep; StencilPassOp = StencilOp.Keep; StencilFunc = ComparisonFunction.Always; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be useful to generate a default constructor for a struct from C++ code,
For example
Input:
Generated:
The text was updated successfully, but these errors were encountered: