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