DKMK100
✅ is there a way to read names of image files
Probably
The only thing that might give you trouble is knowing for sure it's an image file since there might be some weird image file extensions and formats out there
But yea getting a list of all pngs and jpegs and stuff in a folder should be super easy
24 replies
❔ Reading Memory comes out backwards?
The problem isn't really related to the coding language
Both C# and c++ can only abstract this away by the type system which prevents reading bytes on their own.
If you're gonna read plain bytes as useful info, you need to know what info they represent
Including stuff like endianness
No coding language can fix that except by doing what c# is ALREADY doing: remember that for you via type system
You're the one choosing to interact with the bytes without it, and this problem is a natural concequence of that. Someone even showed you a helpful function to remove the busywork of choosing to interpret these yourself, so you only have the actual problem left to deal with
51 replies
❔ reduce CPU/GPU transfer ComputeSharp
right now I have a list of texture2D references on the CPU that I loop through and do stuff on one at a time, and the calculation depends on the previous one
what I want is a way to do this without having to go back to a list on the CPU each time
I don't know how I can save the data on the GPU though since the structure doesn't play nicely, do I just flatten it?
as for the compute context, can I just put a loop there and run the shader in the context that many times? Or how do I set up a pipeline with a dynamic amount of steps like that?
30 replies
❔ reduce CPU/GPU transfer ComputeSharp
I wasn't able to find any documentation on those pipelines, how do they work?
Also, what do I do if I need a list of texture2ds? I can't have an array on the CPU obv but there's no arrays on the GPU and the dimensions of a texture3D are too limiting
30 replies