Do DirectX Compute Shaders support 2D arrays in shared memory?
问题 I want to use groupshared memory in a DirectX Compute Shader to reduce global memory bandwidth and hopefully improve performance. My input data is a Texture2D and I can access it using 2D indexing like so: Input[threadID.xy] I would like to have a 2D array of shared memory for caching portions of the input data, so I tried the obvious: groupshared float SharedInput[32, 32]; It won't compile. The error message says syntax error: unexpected token ',' . Is there any way to have a 2D array of