protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); bool debug = false; #if DEBUG debug = true; #endif GraphicsDeviceOptions options = new GraphicsDeviceOptions( debug, PixelFormat.R16_UNorm, false, ResourceBindingModel.Improved, true, true); GraphicsBackend backend = GraphicsDevice.IsBackendSupported(GraphicsBackend.Vulkan) ? GraphicsBackend.Vulkan : GraphicsBackend.OpenGLES; _view = new VeldridSurfaceView(this, backend, options); AndroidApplicationWindow window = new AndroidApplicationWindow(this, _view); window.GraphicsDeviceCreated += (g, r, s) => window.Run(); ComputeParticles app = new ComputeParticles(window); SetContentView(_view); }
static void Main(string[] args) { ComputeParticles computeParticles = new ComputeParticles(); computeParticles.Run(); }