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>())); }
private static extern void GenerateTexture_Injected(ref TextureGenerationSettings settings, out TextureGenerationOutput ret);