Silk.NETS
Silk.NET3y ago
Aqua

i don't see why it's something that couldn't be returned to, just because it was in 1.0? i'm not dis

i don't see why it's something that couldn't be returned to, just because it was in 1.0?
i'm not dismissing this Ptr<T> idea of course, i am just trying to suggest stuff from a user's perspective. i love C#'s
unsafe
, but I don't think it should be the norm for the end user, and I don't think that a custom type is the right way to do things - simply because to an end user, it is a type they may have never seen before, and may be confusing to use, to the point where one may have to read documentation to find out how to use it
now having documentation is fine, but personally if I were coming from say C++ opengl, I should not have to read documentation to be able to use it in C#, I should just be able to give it an array of data like normal and it just works
the intellisense says it is an array, I can see that it is an array, I give it array data, and it just works, no questions or errors or warnings asked by the compiler
sure there's faster options available, but it just works
for me, that is the advantage of C#
stuff just works, the intellisense makes it obvious what it does, no need to mess around reading documentation, you just give stuff data and off it goes.. then it doesn't work because you gave it the wrong offset but we don't talk about that
Was this page helpful?