IMHO there should be 2 overloads for Silk.Net 3.0 per existing overload
IMHO there should be 2 overloads for Silk.Net 3.0 per existing overload
PointerLike stuffnew(ref x) instead of ref xPointerLike itself a ref struct that can track its own refs



char* name = "POS" PointerLikePointerLikenew(ref x)ref xref structchar* name = "POS"using static Silk.NET.INSANITY;
public class MyClass {
public void thing() {
glGenBuffer(GL_VERTEX_BUFFER);
}
}int* x = default;
{
int y;
x = &y;
}
// y is out of scope thus x's "lifetime" has been exceededSpan<int> x = default;
{
int y = default;
x = MemoryMarshal.AsSpan(ref y, 1);
}
// y is out of scope thus x's "lifetime" has been exceeded