While I have no experience with shaders, in Godot any variant can be converted to bytes by using var_to_bytes and bytes can be converted back again to variant using bytes_to_var
For example,
var v3array : PackedVector3Array = [Vector3.ZERO,Vector3.ONE,Vector3.LEFT] print(v3array) # To convert it into bytes var v3array_bytes : PackedByteArray = var_to_bytes(v3array) # To convert it back again from bytes to PackedVector3Array var convert : PackedVector3Array = bytes_to_var(v3array_bytes) print(convert)Hope it helps :gok: