Skip to main content
5 events
when toggle format what by license comment
Feb 15 at 18:18 comment added Nathan Reed In shaders code, typically everything is inlined by the compiler and so all local variables and function parameters are ultimately just stored in registers. There is neither a copy nor a pointer.
Feb 14 at 21:50 comment added jwd Does this result in a full copy of the array, or is the compiler smart enough to turn it into something like a pointer (even though the language doesn't expose such things directly)?
Feb 28, 2021 at 8:01 vote accept wduk
Feb 28, 2021 at 8:01 comment added wduk In my case its groupshared, so i guess i'll just have to use max size. Thats kinda annoying we can't pass by reference of an array but have to define the size in the method arguement, feels like the language could do with some feature improvements.
Feb 27, 2021 at 23:48 history answered Nathan Reed CC BY-SA 4.0