From 9ac24f64867804d1481de4cbe8194c80205cb837 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 31 Jan 2021 19:41:48 +0100 Subject: [PATCH] Minor code style tweaks --- .../Resources/Interfaces/IReadOnlyTexture2D{TPixel}.cs | 8 ++++---- .../Resources/Interfaces/IReadOnlyTexture3D{TPixel}.cs | 10 +++++----- .../Interfaces/IReadWriteTexture2D{TPixel}.cs | 8 ++++---- .../Interfaces/IReadWriteTexture3D{TPixel}.cs | 10 +++++----- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture2D{TPixel}.cs b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture2D{TPixel}.cs index e2d18faf..d0504e42 100644 --- a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture2D{TPixel}.cs +++ b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture2D{TPixel}.cs @@ -11,12 +11,12 @@ /// /// Gets the width of the current texture. /// - public int Width { get; } + int Width { get; } /// /// Gets the height of the current texture. /// - public int Height { get; } + int Height { get; } /// /// Gets a single value from the current readonly texture. @@ -24,13 +24,13 @@ /// The horizontal offset of the value to get. /// The vertical offset of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public TPixel this[int x, int y] { get; } + TPixel this[int x, int y] { get; } /// /// Gets a single value from the current readonly texture. /// /// The coordinates of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public TPixel this[Int2 xy] { get; } + TPixel this[Int2 xy] { get; } } } diff --git a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture3D{TPixel}.cs b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture3D{TPixel}.cs index 74725b0a..30f1db44 100644 --- a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture3D{TPixel}.cs +++ b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadOnlyTexture3D{TPixel}.cs @@ -11,17 +11,17 @@ /// /// Gets the width of the current texture. /// - public int Width { get; } + int Width { get; } /// /// Gets the height of the current texture. /// - public int Height { get; } + int Height { get; } /// /// Gets the depth of the current texture. /// - public int Depth { get; } + int Depth { get; } /// /// Gets a single value from the current readonly texture. @@ -30,13 +30,13 @@ /// The vertical offset of the value to get. /// The depthwise offset of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public TPixel this[int x, int y, int z] { get; } + TPixel this[int x, int y, int z] { get; } /// /// Gets a single value from the current readonly texture. /// /// The coordinates of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public TPixel this[Int3 xyz] { get; } + TPixel this[Int3 xyz] { get; } } } diff --git a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture2D{TPixel}.cs b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture2D{TPixel}.cs index dede8cfb..547c3683 100644 --- a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture2D{TPixel}.cs +++ b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture2D{TPixel}.cs @@ -11,12 +11,12 @@ /// /// Gets the width of the current texture. /// - public int Width { get; } + int Width { get; } /// /// Gets the height of the current texture. /// - public int Height { get; } + int Height { get; } /// /// Gets a single value from the current writeable texture. @@ -24,13 +24,13 @@ /// The horizontal offset of the value to get. /// The vertical offset of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public ref TPixel this[int x, int y] { get; } + ref TPixel this[int x, int y] { get; } /// /// Gets or sets a single value from the current writeable texture. /// /// The coordinates of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public ref TPixel this[Int2 xy] { get; } + ref TPixel this[Int2 xy] { get; } } } diff --git a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture3D{TPixel}.cs b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture3D{TPixel}.cs index 6bbfb12a..61536271 100644 --- a/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture3D{TPixel}.cs +++ b/src/ComputeSharp.Graphics/Resources/Interfaces/IReadWriteTexture3D{TPixel}.cs @@ -11,17 +11,17 @@ /// /// Gets the width of the current texture. /// - public int Width { get; } + int Width { get; } /// /// Gets the height of the current texture. /// - public int Height { get; } + int Height { get; } /// /// Gets the depth of the current texture. /// - public int Depth { get; } + int Depth { get; } /// /// Gets a single value from the current writeable texture. @@ -30,13 +30,13 @@ /// The vertical offset of the value to get. /// The depthwise offset of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public ref TPixel this[int x, int y, int z] { get; } + ref TPixel this[int x, int y, int z] { get; } /// /// Gets a single value from the current writeable texture. /// /// The coordinates of the value to get. /// This API can only be used from a compute shader, and will always throw if used anywhere else. - public ref TPixel this[Int3 xyz] { get; } + ref TPixel this[Int3 xyz] { get; } } }