Helo I would like to encode non standard types such as sims_float3x3 and [vector_float3]. What is the recommended way to this?
I tried to use Struct like so,
struct Example: Codable {
var test_var1:simd_float3x3
var test_var2:[vector_float3]
}
I get the error, does not conform to protocol 'Decodable'
I also tried,
let data = try encoder.encode(test_var1)
I get the error - Argument type 'simd_float3x3' does not conform to expected type 'Encodable'
I currently can do like so,
let data_col1 = try encoder.encode(test_var1.columns.0) // simd_float3
let data_col2 = try encoder.encode(test_var1.columns.1) // simd_float3
let data_col3 = try encoder.encode(test_var1.columns.2) // simd_float3
But is there any way to do this more elegantly / efficiently?