namespace ComputeSharp.Sample.FSharp.Shaders; /// /// A sample shader thaat just multiplies items in a buffer by two. /// [AutoConstructor] public readonly partial struct MultiplyByTwo : IComputeShader { private readonly ReadWriteBuffer buffer; /// public void Execute() { buffer[ThreadIds.X] *= 2; } }