Click here to Skip to main content
15,884,099 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
NewsWhy not learn Rust? Pin
Super Lloyd2-May-20 19:30
Super Lloyd2-May-20 19:30 
GeneralRe: Why not learn Rust? Pin
RickZeeland2-May-20 20:02
mveRickZeeland2-May-20 20:02 
GeneralRe: Why not learn Rust? Pin
Super Lloyd2-May-20 20:04
Super Lloyd2-May-20 20:04 
GeneralRe: Why not learn Rust? Pin
Eddy Vluggen2-May-20 22:01
professionalEddy Vluggen2-May-20 22:01 
GeneralRe: Why not learn Rust? Pin
Super Lloyd2-May-20 22:08
Super Lloyd2-May-20 22:08 
GeneralRe: Why not learn Rust? Pin
Thomas Daniels2-May-20 22:35
mentorThomas Daniels2-May-20 22:35 
GeneralRe: Why not learn Rust? Pin
Super Lloyd2-May-20 22:38
Super Lloyd2-May-20 22:38 
GeneralRe: Why not learn Rust? Pin
honey the codewitch9-May-20 15:22
mvahoney the codewitch9-May-20 15:22 
I never found C++ to be particularly painful. The thing about C# is it stores arrays in different memory order than C++ for multidimensional arrays, IIRC so yes, making them work together would require a copy.

A better way to do it (and I'd probably have to see how feasible this is as I haven't tried DirectX coding in years) though would be to let the unmanaged code pass you arrays in different memory order, and in the C# code just account for it. Your indices would need to be translated. Easiest thing i can think of is to just map everything as a 1d "flat" array using interop, and then do the math of of y*totalX+x or vice versa to translate.
Real programmers use butterflies

GeneralRe: Why not learn Rust? Pin
Super Lloyd9-May-20 17:20
Super Lloyd9-May-20 17:20 
GeneralRe: Why not learn Rust? Pin
honey the codewitch11-May-20 15:44
mvahoney the codewitch11-May-20 15:44 
GeneralRe: Why not learn Rust? Pin
Chris Maunder5-May-20 14:57
cofounderChris Maunder5-May-20 14:57 
GeneralRe: Why not learn Rust? Pin
Super Lloyd5-May-20 15:10
Super Lloyd5-May-20 15:10 
GeneralGames for free Pin
Nelek2-May-20 9:42
protectorNelek2-May-20 9:42 
GeneralRe: Games for free Pin
RickZeeland2-May-20 21:45
mveRickZeeland2-May-20 21:45 
GeneralRe: Games for free Pin
Nelek3-May-20 0:44
protectorNelek3-May-20 0:44 
GeneralJob Boards Pin
Richard Andrew x642-May-20 8:26
professionalRichard Andrew x642-May-20 8:26 
GeneralRe: Job Boards Pin
PIEBALDconsult2-May-20 9:14
mvePIEBALDconsult2-May-20 9:14 
GeneralRe: Job Boards Pin
Richard Andrew x642-May-20 9:18
professionalRichard Andrew x642-May-20 9:18 
GeneralRe: Job Boards Pin
MadMyche2-May-20 13:04
professionalMadMyche2-May-20 13:04 
GeneralRe: Job Boards Pin
RickZeeland2-May-20 9:25
mveRickZeeland2-May-20 9:25 
AnswerRe: Job Boards Pin
Ravi Bhavnani2-May-20 9:56
professionalRavi Bhavnani2-May-20 9:56 
GeneralRe: Job Boards Pin
Richard Andrew x642-May-20 10:00
professionalRichard Andrew x642-May-20 10:00 
GeneralRe: Job Boards Pin
Slacker0072-May-20 10:11
professionalSlacker0072-May-20 10:11 
GeneralRe: Job Boards Pin
Nelek3-May-20 0:49
protectorNelek3-May-20 0:49 
GeneralPing Griff PinPopular
Jörgen Andersson2-May-20 6:24
professionalJörgen Andersson2-May-20 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.