com.shinolab.autd3-sdk.pattern.holo 0.10.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Holo.cs CHANGED
@@ -11,7 +11,7 @@ namespace AUTD3.Holo
11
11
  T4010A1 = 1,
12
12
  }
13
13
 
14
- public readonly struct Amplitude
14
+ public readonly struct Amplitude : IEquatable<Amplitude>
15
15
  {
16
16
  internal const float AbsoluteThresholdOfHearing = 20e-6f;
17
17
 
@@ -29,9 +29,33 @@ namespace AUTD3.Holo
29
29
  new Amplitude(NativeHolo.autd3_holo_amplitude_kilo_pascal(value));
30
30
 
31
31
  public static Amplitude FromSpl(float value) =>
32
- new Amplitude(NativeHolo.autd3_holo_amplitude_spl(value));
32
+ new Amplitude(NativeHolo.autd3_holo_amplitude_from_db(value));
33
33
 
34
34
  public float Spl => 20f * MathF.Log10(Pascal / AbsoluteThresholdOfHearing);
35
+
36
+ public static Amplitude operator *(Amplitude lhs, float rhs) => new Amplitude(lhs.Pascal * rhs);
37
+
38
+ public static Amplitude operator *(float lhs, Amplitude rhs) => new Amplitude(lhs * rhs.Pascal);
39
+
40
+ public static Amplitude operator /(Amplitude lhs, float rhs) => new Amplitude(lhs.Pascal / rhs);
41
+
42
+ public bool Equals(Amplitude other) => Pascal.Equals(other.Pascal);
43
+
44
+ public override bool Equals(object? obj) => obj is Amplitude other && Equals(other);
45
+
46
+ public override int GetHashCode() => Pascal.GetHashCode();
47
+
48
+ public static bool operator ==(Amplitude left, Amplitude right) => left.Pascal == right.Pascal;
49
+
50
+ public static bool operator !=(Amplitude left, Amplitude right) => left.Pascal != right.Pascal;
51
+
52
+ public static bool operator <(Amplitude left, Amplitude right) => left.Pascal < right.Pascal;
53
+
54
+ public static bool operator >(Amplitude left, Amplitude right) => left.Pascal > right.Pascal;
55
+
56
+ public static bool operator <=(Amplitude left, Amplitude right) => left.Pascal <= right.Pascal;
57
+
58
+ public static bool operator >=(Amplitude left, Amplitude right) => left.Pascal >= right.Pascal;
35
59
  }
36
60
 
37
61
  public readonly struct PressureUnit
@@ -70,28 +94,52 @@ namespace AUTD3.Holo
70
94
  public static readonly SplUnit dB = default;
71
95
  }
72
96
 
73
- public readonly struct IntensityConstraint
97
+ public readonly struct IntensityConstraint : IEquatable<IntensityConstraint>
74
98
  {
75
- internal byte Kind { get; }
76
- internal byte Min { get; }
77
- internal byte Max { get; }
78
- internal float MultiplyValue { get; }
99
+ private const byte KindUnset = 0;
100
+ private const byte KindMultiply = 1;
101
+ private const byte KindClamp = 2;
102
+
103
+ private readonly byte _kind;
104
+ private readonly byte _min;
105
+ private readonly byte _max;
106
+ private readonly float _multiply;
79
107
 
80
108
  private IntensityConstraint(byte kind, byte min, byte max, float multiply)
81
109
  {
82
- Kind = kind;
83
- Min = min;
84
- Max = max;
85
- MultiplyValue = multiply;
110
+ _kind = kind;
111
+ _min = min;
112
+ _max = max;
113
+ _multiply = multiply;
114
+ }
115
+
116
+ public static IntensityConstraint Multiply(float value) => new IntensityConstraint(KindMultiply, 0, 0, value);
117
+ public static IntensityConstraint Clamp(Intensity min, Intensity max) => new IntensityConstraint(KindClamp, min.Value, max.Value, 0);
118
+
119
+ internal IntensityConstraintNative ToNative()
120
+ {
121
+ if (_kind == KindUnset)
122
+ {
123
+ throw new Autd3Exception("the intensity constraint is not set (default(IntensityConstraint) has no value)", Autd3ErrorCode.InvalidArgument);
124
+ }
125
+ return new IntensityConstraintNative { Kind = (byte)(_kind - 1), Min = _min, Max = _max, Multiply = _multiply };
86
126
  }
87
127
 
88
- public static IntensityConstraint Normalize => new IntensityConstraint(0, 0, 0, 0);
89
- public static IntensityConstraint Multiply(float value) => new IntensityConstraint(1, 0, 0, value);
90
- public static IntensityConstraint Uniform(Intensity intensity) => new IntensityConstraint(2, intensity.Value, 0, 0);
91
- public static IntensityConstraint Clamp(Intensity min, Intensity max) => new IntensityConstraint(3, min.Value, max.Value, 0);
128
+ internal static IntensityConstraint FromNative(IntensityConstraintNative native) =>
129
+ native.Kind <= KindClamp - 1
130
+ ? new IntensityConstraint((byte)(native.Kind + 1), native.Min, native.Max, native.Multiply)
131
+ : throw new Autd3Exception($"unknown intensity constraint {native.Kind}");
132
+
133
+ public bool Equals(IntensityConstraint other) =>
134
+ _kind == other._kind && _min == other._min && _max == other._max && _multiply.Equals(other._multiply);
135
+
136
+ public override bool Equals(object? obj) => obj is IntensityConstraint other && Equals(other);
137
+
138
+ public override int GetHashCode() => HashCode.Combine(_kind, _min, _max, _multiply);
139
+
140
+ public static bool operator ==(IntensityConstraint left, IntensityConstraint right) => left.Equals(right);
92
141
 
93
- internal IntensityConstraintNative ToNative() =>
94
- new IntensityConstraintNative { Kind = Kind, Min = Min, Max = Max, Multiply = MultiplyValue };
142
+ public static bool operator !=(IntensityConstraint left, IntensityConstraint right) => !left.Equals(right);
95
143
  }
96
144
 
97
145
  [StructLayout(LayoutKind.Sequential)]
@@ -103,54 +151,74 @@ namespace AUTD3.Holo
103
151
  public float Multiply;
104
152
  }
105
153
 
154
+ internal static class HoloOptionDefaults
155
+ {
156
+ internal static readonly IntensityConstraint NaiveConstraint;
157
+ internal static readonly Directivity NaiveDirectivity;
158
+ internal static readonly uint GsRepeat;
159
+ internal static readonly IntensityConstraint GsConstraint;
160
+ internal static readonly Directivity GsDirectivity;
161
+ internal static readonly uint GspatRepeat;
162
+ internal static readonly IntensityConstraint GspatConstraint;
163
+ internal static readonly Directivity GspatDirectivity;
164
+ internal static readonly byte GreedyPhaseQuantizationLevels;
165
+ internal static readonly Directivity GreedyDirectivity;
166
+
167
+ static HoloOptionDefaults()
168
+ {
169
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_naive_option_default(out var naiveConstraint, out var naiveDirectivity));
170
+ NaiveConstraint = IntensityConstraint.FromNative(naiveConstraint);
171
+ NaiveDirectivity = (Directivity)naiveDirectivity;
172
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_gs_option_default(out var gsRepeat, out var gsConstraint, out var gsDirectivity));
173
+ GsRepeat = (uint)gsRepeat;
174
+ GsConstraint = IntensityConstraint.FromNative(gsConstraint);
175
+ GsDirectivity = (Directivity)gsDirectivity;
176
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_gspat_option_default(out var gspatRepeat, out var gspatConstraint, out var gspatDirectivity));
177
+ GspatRepeat = (uint)gspatRepeat;
178
+ GspatConstraint = IntensityConstraint.FromNative(gspatConstraint);
179
+ GspatDirectivity = (Directivity)gspatDirectivity;
180
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_greedy_option_default(out GreedyPhaseQuantizationLevels, out var greedyDirectivity));
181
+ GreedyDirectivity = (Directivity)greedyDirectivity;
182
+ }
183
+ }
184
+
106
185
  public readonly struct NaiveOption
107
186
  {
108
187
  private readonly IntensityConstraint? _constraint;
109
- public IntensityConstraint Constraint { get => _constraint ?? IntensityConstraint.Clamp(Intensity.Min, Intensity.Max); init => _constraint = value; }
188
+ public IntensityConstraint Constraint { get => _constraint ?? HoloOptionDefaults.NaiveConstraint; init => _constraint = value; }
110
189
  private readonly Directivity? _directivity;
111
- public Directivity Directivity { get => _directivity ?? Directivity.Sphere; init => _directivity = value; }
112
- private readonly TransducerMask? _mask;
113
- public TransducerMask Mask { get => _mask ?? TransducerMask.AllEnabled; init => _mask = value; }
114
- private readonly bool? _parallel;
115
- public bool Parallel { get => _parallel ?? true; init => _parallel = value; }
190
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.NaiveDirectivity; init => _directivity = value; }
191
+ public TransducerMask Mask { get; init; }
116
192
  }
117
193
 
118
194
  public readonly struct GsOption
119
195
  {
120
196
  private readonly uint? _repeat;
121
- public uint Repeat { get => _repeat ?? 100; init => _repeat = value; }
197
+ public uint Repeat { get => _repeat ?? HoloOptionDefaults.GsRepeat; init => _repeat = value; }
122
198
  private readonly IntensityConstraint? _constraint;
123
- public IntensityConstraint Constraint { get => _constraint ?? IntensityConstraint.Clamp(Intensity.Min, Intensity.Max); init => _constraint = value; }
199
+ public IntensityConstraint Constraint { get => _constraint ?? HoloOptionDefaults.GsConstraint; init => _constraint = value; }
124
200
  private readonly Directivity? _directivity;
125
- public Directivity Directivity { get => _directivity ?? Directivity.Sphere; init => _directivity = value; }
126
- private readonly TransducerMask? _mask;
127
- public TransducerMask Mask { get => _mask ?? TransducerMask.AllEnabled; init => _mask = value; }
128
- private readonly bool? _parallel;
129
- public bool Parallel { get => _parallel ?? true; init => _parallel = value; }
201
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.GsDirectivity; init => _directivity = value; }
202
+ public TransducerMask Mask { get; init; }
130
203
  }
131
204
 
132
205
  public readonly struct GspatOption
133
206
  {
134
207
  private readonly uint? _repeat;
135
- public uint Repeat { get => _repeat ?? 100; init => _repeat = value; }
208
+ public uint Repeat { get => _repeat ?? HoloOptionDefaults.GspatRepeat; init => _repeat = value; }
136
209
  private readonly IntensityConstraint? _constraint;
137
- public IntensityConstraint Constraint { get => _constraint ?? IntensityConstraint.Clamp(Intensity.Min, Intensity.Max); init => _constraint = value; }
210
+ public IntensityConstraint Constraint { get => _constraint ?? HoloOptionDefaults.GspatConstraint; init => _constraint = value; }
138
211
  private readonly Directivity? _directivity;
139
- public Directivity Directivity { get => _directivity ?? Directivity.Sphere; init => _directivity = value; }
140
- private readonly TransducerMask? _mask;
141
- public TransducerMask Mask { get => _mask ?? TransducerMask.AllEnabled; init => _mask = value; }
142
- private readonly bool? _parallel;
143
- public bool Parallel { get => _parallel ?? true; init => _parallel = value; }
212
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.GspatDirectivity; init => _directivity = value; }
213
+ public TransducerMask Mask { get; init; }
144
214
  }
145
215
 
146
216
  public readonly struct GreedyOption
147
217
  {
148
218
  private readonly byte? _phaseQuantizationLevels;
149
- public byte PhaseQuantizationLevels { get => _phaseQuantizationLevels ?? 16; init => _phaseQuantizationLevels = value; }
219
+ public byte PhaseQuantizationLevels { get => _phaseQuantizationLevels ?? HoloOptionDefaults.GreedyPhaseQuantizationLevels; init => _phaseQuantizationLevels = value; }
150
220
  private readonly Directivity? _directivity;
151
- public Directivity Directivity { get => _directivity ?? Directivity.Sphere; init => _directivity = value; }
152
- private readonly TransducerMask? _mask;
153
- public TransducerMask Mask { get => _mask ?? TransducerMask.AllEnabled; init => _mask = value; }
221
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.GreedyDirectivity; init => _directivity = value; }
154
222
  }
155
223
 
156
224
  [StructLayout(LayoutKind.Sequential)]
@@ -178,31 +246,34 @@ namespace AUTD3.Holo
178
246
  internal static extern float autd3_holo_amplitude_kilo_pascal(float value);
179
247
 
180
248
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
181
- internal static extern float autd3_holo_amplitude_spl(float value);
249
+ internal static extern float autd3_holo_amplitude_from_db(float value);
250
+
251
+ [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
252
+ internal static extern int autd3_holo_naive_option_default(out IntensityConstraintNative constraint, out byte directivity);
182
253
 
183
254
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
184
- internal static extern int autd3_holo_naive(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
255
+ internal static extern int autd3_holo_gs_option_default(out UIntPtr repeat, out IntensityConstraintNative constraint, out byte directivity);
185
256
 
186
257
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
187
- internal static extern int autd3_holo_gs(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
258
+ internal static extern int autd3_holo_gspat_option_default(out UIntPtr repeat, out IntensityConstraintNative constraint, out byte directivity);
188
259
 
189
260
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
190
- internal static extern int autd3_holo_gspat(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
261
+ internal static extern int autd3_holo_greedy_option_default(out byte phaseQuantizationLevels, out byte directivity);
191
262
 
192
263
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
193
- internal static extern int autd3_holo_naive_batch(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, IntPtr[] phases, IntPtr[] intensities, UIntPtr numProblems, byte[] outErr, UIntPtr outErrLen);
264
+ internal static extern int autd3_holo_naive(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
194
265
 
195
266
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
196
- internal static extern int autd3_holo_gs_batch(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, IntPtr[] phases, IntPtr[] intensities, UIntPtr numProblems, byte[] outErr, UIntPtr outErrLen);
267
+ internal static extern int autd3_holo_gs(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
197
268
 
198
269
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
199
- internal static extern int autd3_holo_gspat_batch(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, IntPtr[] phases, IntPtr[] intensities, UIntPtr numProblems, byte[] outErr, UIntPtr outErrLen);
270
+ internal static extern int autd3_holo_gspat(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
200
271
 
201
272
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
202
- internal static extern int autd3_holo_greedy(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, IntPtr intensities, byte uniformIntensity, byte phaseQuantizationLevels, byte directivity, byte[]? mask, PhaseBufferHandle dst, byte[] outErr, UIntPtr outErrLen);
273
+ internal static extern int autd3_holo_greedy(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, IntPtr intensities, byte uniformIntensity, uint[] order, UIntPtr orderLen, byte phaseQuantizationLevels, byte directivity, PhaseBufferHandle dst, byte[] outErr, UIntPtr outErrLen);
203
274
  }
204
275
 
205
- public readonly struct AmplitudeTarget
276
+ public readonly struct AmplitudeTarget : IEquatable<AmplitudeTarget>
206
277
  {
207
278
  public Vector3 Point { get; }
208
279
  public Amplitude Amplitude { get; }
@@ -212,6 +283,16 @@ namespace AUTD3.Holo
212
283
  Point = point;
213
284
  Amplitude = amplitude;
214
285
  }
286
+
287
+ public bool Equals(AmplitudeTarget other) => Point.Equals(other.Point) && Amplitude.Equals(other.Amplitude);
288
+
289
+ public override bool Equals(object? obj) => obj is AmplitudeTarget other && Equals(other);
290
+
291
+ public override int GetHashCode() => HashCode.Combine(Point, Amplitude);
292
+
293
+ public static bool operator ==(AmplitudeTarget left, AmplitudeTarget right) => left.Equals(right);
294
+
295
+ public static bool operator !=(AmplitudeTarget left, AmplitudeTarget right) => !left.Equals(right);
215
296
  }
216
297
 
217
298
  public static class Holo
@@ -242,7 +323,7 @@ namespace AUTD3.Holo
242
323
  }
243
324
  if (mask.Length != numDevices)
244
325
  {
245
- throw new Autd3Exception($"the mask has {mask.Length} device slots but the buffer has {numDevices} devices");
326
+ throw new Autd3Exception($"the mask has {mask.Length} device slots but the geometry has {numDevices} devices", Autd3ErrorCode.InvalidArgument);
246
327
  }
247
328
  return BufferArray.Flatten(mask, m => (byte)(m ? 1 : 0), "mask values");
248
329
  }
@@ -251,101 +332,43 @@ namespace AUTD3.Holo
251
332
  {
252
333
  var c = option.Constraint.ToNative();
253
334
  var err = new byte[NativeAbi.ErrorBufferLength];
254
- if (NativeHolo.autd3_holo_naive(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), option.Parallel, phases.Handle, intensities.Handle, err, (UIntPtr)err.Length) != 0)
255
- {
256
- throw new Autd3Exception(NativeUtil.Utf8(err));
257
- }
258
- }
259
-
260
- public static void Gs(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GsOption option, PhaseBuffer phases, IntensityBuffer intensities)
261
- {
262
- var c = option.Constraint.ToNative();
263
- var err = new byte[NativeAbi.ErrorBufferLength];
264
- if (NativeHolo.autd3_holo_gs(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), option.Parallel, phases.Handle, intensities.Handle, err, (UIntPtr)err.Length) != 0)
265
- {
266
- throw new Autd3Exception(NativeUtil.Utf8(err));
267
- }
268
- }
269
-
270
- public static void Gspat(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GspatOption option, PhaseBuffer phases, IntensityBuffer intensities)
271
- {
272
- var c = option.Constraint.ToNative();
273
- var err = new byte[NativeAbi.ErrorBufferLength];
274
- if (NativeHolo.autd3_holo_gspat(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), option.Parallel, phases.Handle, intensities.Handle, err, (UIntPtr)err.Length) != 0)
275
- {
276
- throw new Autd3Exception(NativeUtil.Utf8(err));
277
- }
278
- }
279
-
280
- private static void CheckBatch(IReadOnlyList<PhaseBuffer> phases, IReadOnlyList<IntensityBuffer> intensities)
281
- {
282
- if (phases.Count != intensities.Count)
283
- {
284
- throw new Autd3Exception(
285
- $"a batch needs one intensity buffer per phase buffer, but {phases.Count} phase and {intensities.Count} intensity buffers were given",
286
- Autd3ErrorCode.InvalidArgument);
287
- }
288
- }
289
-
290
- private static HandleArray Lease<T>(IReadOnlyList<T> buffers, Func<T, SafeHandle> handle)
291
- {
292
- var handles = new SafeHandle[buffers.Count];
293
- for (var i = 0; i < handles.Length; i++)
294
- {
295
- handles[i] = handle(buffers[i]);
296
- }
297
- return new HandleArray(handles);
298
- }
299
-
300
- public static void NaiveBatch(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, NaiveOption option, IReadOnlyList<PhaseBuffer> phases, IReadOnlyList<IntensityBuffer> intensities)
301
- {
302
- CheckBatch(phases, intensities);
303
- var c = option.Constraint.ToNative();
304
- var err = new byte[NativeAbi.ErrorBufferLength];
305
- using var p = Lease(phases, b => b.Handle);
306
- using var i = Lease(intensities, b => b.Handle);
307
- var code = NativeHolo.autd3_holo_naive_batch(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), option.Parallel, p.Pointers, i.Pointers, (UIntPtr)phases.Count, err, (UIntPtr)err.Length);
335
+ var code = NativeHolo.autd3_holo_naive(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), phases.Handle, intensities.Handle, err, (UIntPtr)err.Length);
308
336
  if (code != 0)
309
337
  {
310
338
  throw Autd3Exception.FromNative(code, err);
311
339
  }
312
340
  }
313
341
 
314
- public static void GsBatch(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GsOption option, IReadOnlyList<PhaseBuffer> phases, IReadOnlyList<IntensityBuffer> intensities)
342
+ public static void Gs(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GsOption option, PhaseBuffer phases, IntensityBuffer intensities)
315
343
  {
316
- CheckBatch(phases, intensities);
317
344
  var c = option.Constraint.ToNative();
318
345
  var err = new byte[NativeAbi.ErrorBufferLength];
319
- using var p = Lease(phases, b => b.Handle);
320
- using var i = Lease(intensities, b => b.Handle);
321
- var code = NativeHolo.autd3_holo_gs_batch(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), option.Parallel, p.Pointers, i.Pointers, (UIntPtr)phases.Count, err, (UIntPtr)err.Length);
346
+ var code = NativeHolo.autd3_holo_gs(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), phases.Handle, intensities.Handle, err, (UIntPtr)err.Length);
322
347
  if (code != 0)
323
348
  {
324
349
  throw Autd3Exception.FromNative(code, err);
325
350
  }
326
351
  }
327
352
 
328
- public static void GspatBatch(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GspatOption option, IReadOnlyList<PhaseBuffer> phases, IReadOnlyList<IntensityBuffer> intensities)
353
+ public static void Gspat(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GspatOption option, PhaseBuffer phases, IntensityBuffer intensities)
329
354
  {
330
- CheckBatch(phases, intensities);
331
355
  var c = option.Constraint.ToNative();
332
356
  var err = new byte[NativeAbi.ErrorBufferLength];
333
- using var p = Lease(phases, b => b.Handle);
334
- using var i = Lease(intensities, b => b.Handle);
335
- var code = NativeHolo.autd3_holo_gspat_batch(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), option.Parallel, p.Pointers, i.Pointers, (UIntPtr)phases.Count, err, (UIntPtr)err.Length);
357
+ var code = NativeHolo.autd3_holo_gspat(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), phases.Handle, intensities.Handle, err, (UIntPtr)err.Length);
336
358
  if (code != 0)
337
359
  {
338
360
  throw Autd3Exception.FromNative(code, err);
339
361
  }
340
362
  }
341
363
 
342
- public static void Greedy(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, PatternIntensity intensities, GreedyOption option, PhaseBuffer dst)
364
+ public static void Greedy(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, PatternIntensity intensities, uint[] order, GreedyOption option, PhaseBuffer dst)
343
365
  {
344
366
  using var intensityLease = new HandleLease(intensities.Buffer?.Handle);
345
367
  var err = new byte[NativeAbi.ErrorBufferLength];
346
- if (NativeHolo.autd3_holo_greedy(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, intensityLease.Pointer, intensities.Uniform, option.PhaseQuantizationLevels, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), dst.Handle, err, (UIntPtr)err.Length) != 0)
368
+ var code = NativeHolo.autd3_holo_greedy(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, intensityLease.Pointer, intensities.Uniform, order, (UIntPtr)order.Length, option.PhaseQuantizationLevels, (byte)option.Directivity, dst.Handle, err, (UIntPtr)err.Length);
369
+ if (code != 0)
347
370
  {
348
- throw new Autd3Exception(NativeUtil.Utf8(err));
371
+ throw Autd3Exception.FromNative(code, err);
349
372
  }
350
373
  }
351
374
  }
@@ -5,7 +5,7 @@ The following is a list of those components and the full text of their licenses.
5
5
 
6
6
  ## Overview
7
7
 
8
- - MIT License (44)
8
+ - MIT License (27)
9
9
  - Apache License 2.0 (3)
10
10
  - Unicode License v3 (1)
11
11
 
@@ -226,7 +226,7 @@ Used by:
226
226
  Used by:
227
227
 
228
228
  - nalgebra 0.35.0 — https://github.com/dimforge/nalgebra
229
- - simba 0.10.0 — https://github.com/dimforge/simba
229
+ - simba 0.10.2 — https://github.com/dimforge/simba
230
230
 
231
231
  ```
232
232
  Apache License
@@ -437,77 +437,6 @@ Used by:
437
437
 
438
438
  Used by:
439
439
 
440
- - rayon-core 1.13.0 — https://github.com/rayon-rs/rayon
441
- - rayon 1.12.0 — https://github.com/rayon-rs/rayon
442
-
443
- ```
444
- Copyright (c) 2010 The Rust Project Developers
445
-
446
- Permission is hereby granted, free of charge, to any
447
- person obtaining a copy of this software and associated
448
- documentation files (the "Software"), to deal in the
449
- Software without restriction, including without
450
- limitation the rights to use, copy, modify, merge,
451
- publish, distribute, sublicense, and/or sell copies of
452
- the Software, and to permit persons to whom the Software
453
- is furnished to do so, subject to the following
454
- conditions:
455
-
456
- The above copyright notice and this permission notice
457
- shall be included in all copies or substantial portions
458
- of the Software.
459
-
460
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
461
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
462
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
463
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
464
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
465
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
466
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
467
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
468
- DEALINGS IN THE SOFTWARE.
469
-
470
- ```
471
-
472
- ## MIT License
473
-
474
- Used by:
475
-
476
- - cfg-if 1.0.4 — https://github.com/rust-lang/cfg-if
477
-
478
- ```
479
- Copyright (c) 2014 Alex Crichton
480
-
481
- Permission is hereby granted, free of charge, to any
482
- person obtaining a copy of this software and associated
483
- documentation files (the "Software"), to deal in the
484
- Software without restriction, including without
485
- limitation the rights to use, copy, modify, merge,
486
- publish, distribute, sublicense, and/or sell copies of
487
- the Software, and to permit persons to whom the Software
488
- is furnished to do so, subject to the following
489
- conditions:
490
-
491
- The above copyright notice and this permission notice
492
- shall be included in all copies or substantial portions
493
- of the Software.
494
-
495
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
496
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
497
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
498
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
499
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
500
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
501
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
502
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
503
- DEALINGS IN THE SOFTWARE.
504
-
505
- ```
506
-
507
- ## MIT License
508
-
509
- Used by:
510
-
511
440
  - bitflags 2.13.2 — https://github.com/bitflags/bitflags
512
441
  - num-complex 0.4.6 — https://github.com/rust-num/num-complex
513
442
  - num-integer 0.1.47 — https://github.com/rust-num/num-integer
@@ -547,7 +476,6 @@ DEALINGS IN THE SOFTWARE.
547
476
 
548
477
  Used by:
549
478
 
550
- - either 1.16.0 — https://github.com/rayon-rs/either
551
479
  - rawpointer 0.2.1 — https://github.com/bluss/rawpointer/
552
480
 
553
481
  ```
@@ -583,7 +511,7 @@ DEALINGS IN THE SOFTWARE.
583
511
 
584
512
  Used by:
585
513
 
586
- - matrixmultiply 0.3.10 — https://github.com/bluss/matrixmultiply/
514
+ - matrixmultiply 0.3.11 — https://github.com/bluss/matrixmultiply/
587
515
 
588
516
  ```
589
517
  Copyright (c) 2016 - 2023 Ulrik Sverdrup "bluss"
@@ -620,256 +548,8 @@ DEALINGS IN THE SOFTWARE.
620
548
 
621
549
  Used by:
622
550
 
623
- - rand_core 0.10.1 — https://github.com/rust-random/rand_core
624
-
625
- ```
626
- Copyright (c) 2018-2026 The Rand Project Developers
627
-
628
- Permission is hereby granted, free of charge, to any
629
- person obtaining a copy of this software and associated
630
- documentation files (the "Software"), to deal in the
631
- Software without restriction, including without
632
- limitation the rights to use, copy, modify, merge,
633
- publish, distribute, sublicense, and/or sell copies of
634
- the Software, and to permit persons to whom the Software
635
- is furnished to do so, subject to the following
636
- conditions:
637
-
638
- The above copyright notice and this permission notice
639
- shall be included in all copies or substantial portions
640
- of the Software.
641
-
642
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
643
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
644
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
645
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
646
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
647
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
648
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
649
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
650
- DEALINGS IN THE SOFTWARE.
651
-
652
- ```
653
-
654
- ## MIT License
655
-
656
- Used by:
657
-
658
- - getrandom 0.4.3 — https://github.com/rust-random/getrandom
659
-
660
- ```
661
- Copyright (c) 2018-2026 The rust-random Project Developers
662
- Copyright (c) 2014 The Rust Project Developers
663
-
664
- Permission is hereby granted, free of charge, to any
665
- person obtaining a copy of this software and associated
666
- documentation files (the "Software"), to deal in the
667
- Software without restriction, including without
668
- limitation the rights to use, copy, modify, merge,
669
- publish, distribute, sublicense, and/or sell copies of
670
- the Software, and to permit persons to whom the Software
671
- is furnished to do so, subject to the following
672
- conditions:
673
-
674
- The above copyright notice and this permission notice
675
- shall be included in all copies or substantial portions
676
- of the Software.
677
-
678
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
679
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
680
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
681
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
682
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
683
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
684
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
685
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
686
- DEALINGS IN THE SOFTWARE.
687
-
688
- ```
689
-
690
- ## MIT License
691
-
692
- Used by:
693
-
694
- - tracing-core 0.1.36 — https://github.com/tokio-rs/tracing
695
- - tracing 0.1.44 — https://github.com/tokio-rs/tracing
696
-
697
- ```
698
- Copyright (c) 2019 Tokio Contributors
699
-
700
- Permission is hereby granted, free of charge, to any
701
- person obtaining a copy of this software and associated
702
- documentation files (the "Software"), to deal in the
703
- Software without restriction, including without
704
- limitation the rights to use, copy, modify, merge,
705
- publish, distribute, sublicense, and/or sell copies of
706
- the Software, and to permit persons to whom the Software
707
- is furnished to do so, subject to the following
708
- conditions:
709
-
710
- The above copyright notice and this permission notice
711
- shall be included in all copies or substantial portions
712
- of the Software.
713
-
714
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
715
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
716
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
717
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
718
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
719
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
720
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
721
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
722
- DEALINGS IN THE SOFTWARE.
723
-
724
- ```
725
-
726
- ## MIT License
727
-
728
- Used by:
729
-
730
- - chacha20 0.10.2 — https://github.com/RustCrypto/stream-ciphers
731
-
732
- ```
733
- Copyright (c) 2019-2026 The RustCrypto Project Developers
734
-
735
- Permission is hereby granted, free of charge, to any
736
- person obtaining a copy of this software and associated
737
- documentation files (the "Software"), to deal in the
738
- Software without restriction, including without
739
- limitation the rights to use, copy, modify, merge,
740
- publish, distribute, sublicense, and/or sell copies of
741
- the Software, and to permit persons to whom the Software
742
- is furnished to do so, subject to the following
743
- conditions:
744
-
745
- The above copyright notice and this permission notice
746
- shall be included in all copies or substantial portions
747
- of the Software.
748
-
749
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
750
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
751
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
752
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
753
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
754
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
755
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
756
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
757
- DEALINGS IN THE SOFTWARE.
758
-
759
- ```
760
-
761
- ## MIT License
762
-
763
- Used by:
764
-
765
- - cpufeatures 0.3.0 — https://github.com/RustCrypto/utils
766
-
767
- ```
768
- Copyright (c) 2020-2025 The RustCrypto Project Developers
769
-
770
- Permission is hereby granted, free of charge, to any
771
- person obtaining a copy of this software and associated
772
- documentation files (the "Software"), to deal in the
773
- Software without restriction, including without
774
- limitation the rights to use, copy, modify, merge,
775
- publish, distribute, sublicense, and/or sell copies of
776
- the Software, and to permit persons to whom the Software
777
- is furnished to do so, subject to the following
778
- conditions:
779
-
780
- The above copyright notice and this permission notice
781
- shall be included in all copies or substantial portions
782
- of the Software.
783
-
784
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
785
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
786
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
787
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
788
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
789
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
790
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
791
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
792
- DEALINGS IN THE SOFTWARE.
793
-
794
- ```
795
-
796
- ## MIT License
797
-
798
- Used by:
799
-
800
- - libc 0.2.190 — https://github.com/rust-lang/libc
801
-
802
- ```
803
- Copyright (c) The Rust Project Developers
804
-
805
- Permission is hereby granted, free of charge, to any
806
- person obtaining a copy of this software and associated
807
- documentation files (the "Software"), to deal in the
808
- Software without restriction, including without
809
- limitation the rights to use, copy, modify, merge,
810
- publish, distribute, sublicense, and/or sell copies of
811
- the Software, and to permit persons to whom the Software
812
- is furnished to do so, subject to the following
813
- conditions:
814
-
815
- The above copyright notice and this permission notice
816
- shall be included in all copies or substantial portions
817
- of the Software.
818
-
819
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
820
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
821
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
822
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
823
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
824
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
825
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
826
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
827
- DEALINGS IN THE SOFTWARE.
828
-
829
- ```
830
-
831
- ## MIT License
832
-
833
- Used by:
834
-
835
- - rand 0.10.1 — https://github.com/rust-random/rand
836
-
837
- ```
838
- Copyright 2018 Developers of the Rand project
839
- Copyright (c) 2014 The Rust Project Developers
840
-
841
- Permission is hereby granted, free of charge, to any
842
- person obtaining a copy of this software and associated
843
- documentation files (the "Software"), to deal in the
844
- Software without restriction, including without
845
- limitation the rights to use, copy, modify, merge,
846
- publish, distribute, sublicense, and/or sell copies of
847
- the Software, and to permit persons to whom the Software
848
- is furnished to do so, subject to the following
849
- conditions:
850
-
851
- The above copyright notice and this permission notice
852
- shall be included in all copies or substantial portions
853
- of the Software.
854
-
855
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
856
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
857
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
858
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
859
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
860
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
861
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
862
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
863
- DEALINGS IN THE SOFTWARE.
864
-
865
- ```
866
-
867
- ## MIT License
868
-
869
- Used by:
870
-
871
- - zerocopy-derive 0.8.52 — https://github.com/google/zerocopy
872
- - zerocopy 0.8.52 — https://github.com/google/zerocopy
551
+ - zerocopy-derive 0.8.63 — https://github.com/google/zerocopy
552
+ - zerocopy 0.8.63 — https://github.com/google/zerocopy
873
553
 
874
554
  ```
875
555
  Copyright 2023 The Fuchsia Authors
@@ -967,7 +647,7 @@ SOFTWARE.
967
647
 
968
648
  Used by:
969
649
 
970
- - bytemuck 1.25.0 — https://github.com/Lokathor/bytemuck
650
+ - bytemuck 1.25.2 — https://github.com/Lokathor/bytemuck
971
651
 
972
652
  ```
973
653
  MIT License
@@ -986,7 +666,38 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
986
666
 
987
667
  Used by:
988
668
 
989
- - safe_arch 1.0.0 — https://github.com/Lokathor/safe_arch
669
+ - wide 1.7.1 — https://github.com/Lokathor/wide
670
+
671
+ ```
672
+ MIT License
673
+
674
+ Copyright (c) 2020 Daniel "Lokathor" Gee
675
+
676
+ Permission is hereby granted, free of charge, to any person obtaining a copy
677
+ of this software and associated documentation files (the "Software"), to deal
678
+ in the Software without restriction, including without limitation the rights
679
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
680
+ copies of the Software, and to permit persons to whom the Software is
681
+ furnished to do so, subject to the following conditions:
682
+
683
+ The above copyright notice and this permission notice shall be included in all
684
+ copies or substantial portions of the Software.
685
+
686
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
687
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
688
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
689
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
690
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
691
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
692
+ SOFTWARE.
693
+
694
+ ```
695
+
696
+ ## MIT License
697
+
698
+ Used by:
699
+
700
+ - safe_arch 1.2.0 — https://github.com/Lokathor/safe_arch
990
701
 
991
702
  ```
992
703
  MIT License
@@ -1005,9 +716,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1005
716
 
1006
717
  Used by:
1007
718
 
1008
- - autd3-rs-core 0.10.0 — https://github.com/shinolab/autd3-sdk
1009
- - autd3-rs-pattern-holo 0.10.0 — https://github.com/shinolab/autd3-sdk
1010
- - autd3-cpu-wire 0.10.0 — https://github.com/shinolab/autd3-sdk
719
+ - autd3-rs-core 0.14.0 — https://github.com/shinolab/autd3-sdk
720
+ - autd3-rs-pattern-holo 0.14.0 — https://github.com/shinolab/autd3-sdk
721
+ - autd3-cpu-wire 0.14.0 — https://github.com/shinolab/autd3-sdk
1011
722
 
1012
723
  ```
1013
724
  MIT License
@@ -1038,10 +749,8 @@ SOFTWARE.
1038
749
 
1039
750
  Used by:
1040
751
 
1041
- - autd3-ffi-abi 0.10.0 — https://github.com/shinolab/autd3-sdk
1042
- - autd3-ffi-pattern-holo 0.10.0 — https://github.com/shinolab/autd3-sdk
1043
- - r-efi 6.0.0 — https://github.com/r-efi/r-efi
1044
- - wide 1.5.0 — https://github.com/Lokathor/wide
752
+ - autd3-ffi-abi 0.14.0 — https://github.com/shinolab/autd3-sdk
753
+ - autd3-ffi-pattern-holo 0.14.0 — https://github.com/shinolab/autd3-sdk
1045
754
 
1046
755
  ```
1047
756
  MIT License
@@ -1069,13 +778,13 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
1069
778
 
1070
779
  Used by:
1071
780
 
1072
- - pin-project-lite 0.2.17 — https://github.com/taiki-e/pin-project-lite
1073
- - proc-macro2 1.0.106 — https://github.com/dtolnay/proc-macro2
1074
- - quote 1.0.46 — https://github.com/dtolnay/quote
1075
- - syn 2.0.118 — https://github.com/dtolnay/syn
1076
- - thiserror-impl 2.0.18 — https://github.com/dtolnay/thiserror
1077
- - thiserror 2.0.18 — https://github.com/dtolnay/thiserror
1078
- - unicode-ident 1.0.24 — https://github.com/dtolnay/unicode-ident
781
+ - proc-macro2 1.0.107 — https://github.com/dtolnay/proc-macro2
782
+ - quote 1.0.47 — https://github.com/dtolnay/quote
783
+ - syn 2.0.119 — https://github.com/dtolnay/syn
784
+ - syn 3.0.9 — https://github.com/dtolnay/syn
785
+ - thiserror-impl 2.0.21 — https://github.com/dtolnay/thiserror
786
+ - thiserror 2.0.21 — https://github.com/dtolnay/thiserror
787
+ - unicode-ident 1.0.27 — https://github.com/dtolnay/unicode-ident
1079
788
 
1080
789
  ```
1081
790
  Permission is hereby granted, free of charge, to any
@@ -1108,37 +817,6 @@ DEALINGS IN THE SOFTWARE.
1108
817
 
1109
818
  Used by:
1110
819
 
1111
- - tracing-core 0.1.36 — https://github.com/tokio-rs/tracing
1112
-
1113
- ```
1114
- The MIT License (MIT)
1115
-
1116
- Copyright (c) 2014 Mathijs van de Nes
1117
-
1118
- Permission is hereby granted, free of charge, to any person obtaining a copy
1119
- of this software and associated documentation files (the "Software"), to deal
1120
- in the Software without restriction, including without limitation the rights
1121
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1122
- copies of the Software, and to permit persons to whom the Software is
1123
- furnished to do so, subject to the following conditions:
1124
-
1125
- The above copyright notice and this permission notice shall be included in all
1126
- copies or substantial portions of the Software.
1127
-
1128
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1129
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1130
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1131
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1132
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1133
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1134
- SOFTWARE.
1135
-
1136
- ```
1137
-
1138
- ## MIT License
1139
-
1140
- Used by:
1141
-
1142
820
  - typenum 1.20.1 — https://github.com/paholg/typenum
1143
821
 
1144
822
  ```
@@ -1166,50 +844,11 @@ SOFTWARE.
1166
844
 
1167
845
  ```
1168
846
 
1169
- ## MIT License
1170
-
1171
- Used by:
1172
-
1173
- - crossbeam-deque 0.8.7 — https://github.com/crossbeam-rs/crossbeam
1174
- - crossbeam-epoch 0.9.20 — https://github.com/crossbeam-rs/crossbeam
1175
- - crossbeam-utils 0.8.21 — https://github.com/crossbeam-rs/crossbeam
1176
-
1177
- ```
1178
- The MIT License (MIT)
1179
-
1180
- Copyright (c) 2019 The Crossbeam Project Developers
1181
-
1182
- Permission is hereby granted, free of charge, to any
1183
- person obtaining a copy of this software and associated
1184
- documentation files (the "Software"), to deal in the
1185
- Software without restriction, including without
1186
- limitation the rights to use, copy, modify, merge,
1187
- publish, distribute, sublicense, and/or sell copies of
1188
- the Software, and to permit persons to whom the Software
1189
- is furnished to do so, subject to the following
1190
- conditions:
1191
-
1192
- The above copyright notice and this permission notice
1193
- shall be included in all copies or substantial portions
1194
- of the Software.
1195
-
1196
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
1197
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
1198
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
1199
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
1200
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1201
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1202
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1203
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1204
- DEALINGS IN THE SOFTWARE.
1205
-
1206
- ```
1207
-
1208
847
  ## Unicode License v3
1209
848
 
1210
849
  Used by:
1211
850
 
1212
- - unicode-ident 1.0.24 — https://github.com/dtolnay/unicode-ident
851
+ - unicode-ident 1.0.27 — https://github.com/dtolnay/unicode-ident
1213
852
 
1214
853
  ```
1215
854
  UNICODE LICENSE V3
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/shinolab/autd3-sdk.git",
6
6
  "directory": "bindings/unity/com.shinolab.autd3-sdk.pattern.holo"
7
7
  },
8
- "version": "0.10.0",
8
+ "version": "0.14.0",
9
9
  "displayName": "AUTD3 Pattern Holo",
10
10
  "description": "AUTD3 multi-focus holographic patterns (Unity binding).",
11
11
  "unity": "6000.0",
@@ -15,6 +15,6 @@
15
15
  "url": "https://github.com/shinolab"
16
16
  },
17
17
  "dependencies": {
18
- "com.shinolab.autd3-sdk.pattern": "0.10.0"
18
+ "com.shinolab.autd3-sdk.pattern": "0.14.0"
19
19
  }
20
20
  }