Beispiel #1
0
        public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings)
        {
            TextureGenerationOutput result;

            TextureGenerator.GenerateTexture_Injected(ref settings, out result);
            return(result);
        }
 extern static unsafe TextureGenerationOutput GenerateTextureImpl(TextureGenerationSettings settings, void *colorBuffer, int colorBufferLength);
 public static TextureGenerationOutput GenerateTexture(TextureGenerationSettings settings, NativeArray <Color32> colorBuffer)
 {
     return(GenerateTextureImpl(settings, colorBuffer.GetUnsafeReadOnlyPtr(), colorBuffer.Length * UnsafeUtility.SizeOf <Color32>()));
 }
Beispiel #4
0
 private static extern void GenerateTexture_Injected(ref TextureGenerationSettings settings, out TextureGenerationOutput ret);