namespace ComputeSharp
{
///
/// An interface representing a typed writeable 2D texture containing normalized pixel data stored on GPU memory.
/// This interface can only be used to wrap instances.
///
/// The type of normalized pixels used on the GPU side.
public interface IReadWriteTexture3D
where TPixel : unmanaged
{
///
/// Gets the width of the current texture.
///
public int Width { get; }
///
/// Gets the height of the current texture.
///
public int Height { get; }
///
/// Gets the depth of the current texture.
///
public int Depth { get; }
///
/// Gets a single value from the current writeable texture.
///
/// The horizontal offset of the value to get.
/// 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; }
///
/// 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; }
}
}