CUDA.@cuStaticSharedMem returning a Structure of Arrays

Working on the GPU I usually find convenient to use Structure of Arrays. I use GitHub - JuliaArrays/StructArrays.jl: Efficient implementation of struct arrays in Julia

For example, I use:

struct pt
x::Float64
Y::Float64
end

dims = (100,100,100)
A = StructArray{pt}(zeros(dims), zeros(dims))
A_GPU =  replace_storage(CuArray, A)

The problem is that if I use now

A_SHARED = CUDA.@cuStaticSharedMem(pt, (4,4,4))

the shared array has the wrong memory layout. Is there a way to make CUDA.@cuStaticSharedMem return a StructArray?

Thanks,

A.