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