This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public readonly struct MandelbrotShader : IComputeShader | |
{ | |
public readonly ReadWriteTexture2D<Rgba32, Float4> image; | |
public readonly Float4 viewport; | |
public readonly int maxIterations; | |
public readonly float power; | |
public MandelbrotShader( | |
ReadWriteTexture2D<Rgba32, Float4> image, | |
Float4 viewport, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Numerics; | |
using SixLabors.ImageSharp; | |
using SixLaborsRgba32 = SixLabors.ImageSharp.PixelFormats.Rgba32; | |
namespace MandelbrotCPUTest | |
{ | |
class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using SixLabors.ImageSharp; | |
using SixLaborsRgba32 = SixLabors.ImageSharp.PixelFormats.Rgba32; | |
namespace MandelbrotCPUTest | |
{ | |
class Program | |
{ | |
static void Main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Linq; | |
using System.Net; | |
using System.Runtime.InteropServices; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using Flurl; | |
using Newtonsoft.Json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var props = new SlashCommandCreationProperties() | |
{ | |
Name = "elite", | |
Description = "Commands related to Elite: Dangerous.", | |
Options = new List<ApplicationCommandOptionProperties>() | |
{ | |
new ApplicationCommandOptionProperties() | |
{ | |
Name = "status", | |
Description = "Get Elite's server status.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using DSharpPlus.Entities; | |
using DSharpPlus.SlashCommands; | |
using DSharpPlus; | |
using DSharpPlus.EventArgs; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
using System; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SynacorSharp.Runtime; | |
namespace SynacorSharp.ConsoleApp | |
{ | |
internal class Program | |
{ | |
static void Main() | |
{ | |
var engine = new SynacorEngine() | |
{ |
OlderNewer