Esempio n. 1
0
 extern static unsafe TextureGenerationOutput GenerateTextureImpl(TextureGenerationSettings settings, void *colorBuffer, int colorBufferLength);
Esempio n. 2
0
 public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings, NativeArray <Color32> colorBuffer)
 {
     return(GenerateTextureImpl(settings, colorBuffer.GetUnsafeReadOnlyPtr(), colorBuffer.Length * UnsafeUtility.SizeOf <Color32>()));
 }