From b5aa63314c30ea78caa134dd4923e7ad4be8af9e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 14 Aug 2019 15:20:06 +0200 Subject: [PATCH] Fixed a typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 32197d0d..7510bfc1 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,14 @@ using ReadOnlyBuffer xBuffer = Gpu.Default.AllocateConstantBuffer(x); using ReadWriteBuffer yBuffer = Gpu.Default.AllocateReadWriteBuffer(y); // Shader body -void Shader(ThreadIds id) +void Main(ThreadIds id) { uint offset = id.X + id.Y * (uint)width; yBuffer[offset] += xBuffer[offset]; } // Run the shader -Gpu.Default.For(width, height, action); +Gpu.Default.For(width, height, Main); // Get the data back and write it to the y array yBuffer.GetData(y);