godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Add NativeStructs and Pointers in C# for GDExtension interoperability #7561

Open Faolan-Rad opened 1 year ago

Faolan-Rad commented 1 year ago

Describe the project you are working on

Networked VR Editor

Describe the problem or limitation you are having in your project

Can not use GDExtension things like pointers and native structs in C# so you can not implement audio playbacks in C#

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Enhance the interoperability between Godot's core and the C# language, particularly focusing on efficient memory operations. These features will simplify the management of native data, improve performance in certain scenarios, and give developers a more granular level of control over their code.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

If this enhancement will not be used often, can it be worked around with a few lines of script?

Because you can't use GDExtension easily with C# it is not essay to work around and if you want to link it to your networking system you just can't

Is there a reason why this should be core and not an add-on in the asset library?

because is a problem with the C# implementation not supporting it

Faolan-Rad commented 1 year ago

PR