#pragma warning disable IDE0022
namespace ComputeSharp.D2D1;
///
/// A representing a readonly 3D texture stored on GPU memory.
/// This can be used from D2D1 pixel shaders to be able to pass arbitrary inputs to them.
///
/// The type of items stored on the texture (only and are supported).
[AutoConstructorBehavior(AutoConstructorBehavior.IgnoreAndSetToDefault)]
public readonly struct D2D1ResourceTexture3D
where T : unmanaged
{
///
/// Gets the width of the current texture.
///
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
public int Width => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Width)}");
///
/// Gets the height of the current texture.
///
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
public int Height => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Height)}");
///
/// Gets the depth of the current texture.
///
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
public int Depth => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Depth)}");
///
/// Gets a single value from the current readonly 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 readonly T this[int x, int y, int z] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}[{typeof(int)}, {typeof(int)}, {typeof(int)}]");
///
/// 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 ref readonly T this[Int3 xyz] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}[{typeof(Int3)}]");
///
/// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The horizontal normalized offset of the value to get.
/// The vertical normalized 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 readonly T Sample(float u, float v, float w) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Sample)}({typeof(float)}, {typeof(float)}, {typeof(float)})");
///
/// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The normalized 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 readonly T Sample(Float3 uvw) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Sample)}({typeof(Float3)})");
}