Remove dimensions test for ConstantBuffer<T>

Accessing the dimension from a shader is not supported
このコミットが含まれているのは:
Sergio Pedri committed 2022-08-30 02:43:56 +02:00
1 親 f6af39e36c
コミット 040d273f10
2ファイル変更
-33

検索条件に一致するファイルはありません

-32
ファイルの表示
@@ -8,38 +8,6 @@ namespace ComputeSharp.Tests;
[TestCategory("ResourceDimensions")]
public partial class ResourceDimensionsTests
{
[CombinatorialTestMethod]
[AllDevices]
[Data(8)]
[Data(64)]
[Data(128)]
[Data(376)]
public void ConstantBuffer_T1_AsConstantBuffer(Device device, int axis0)
{
using ConstantBuffer<float> resource = device.Get().AllocateConstantBuffer<float>(axis0);
using ReadWriteBuffer<int> result = device.Get().AllocateReadWriteBuffer<int>(1);
device.Get().For(1, new ConstantBuffer_T1_AsConstantBufferShader(resource, result));
int[] dimensions = result.ToArray();
CollectionAssert.AreEqual(
expected: new[] { axis0 },
actual: dimensions);
}
[AutoConstructor]
internal readonly partial struct ConstantBuffer_T1_AsConstantBufferShader : IComputeShader
{
public readonly ConstantBuffer<float> source;
public readonly ReadWriteBuffer<int> result;
public void Execute()
{
result[0] = source.Length;
}
}
[CombinatorialTestMethod]
[AllDevices]
[Data(8)]
-1
ファイルの表示
@@ -18,7 +18,6 @@ public partial class ResourceDimensionsTests
// Map of all resource types with dimensions accessors
var typesMap = new Dictionary<string, string[]>
{
["ConstantBuffer<float>"] = new[] { "Length" },
["ReadOnlyBuffer<float>"] = new[] { "Length" },
["ReadWriteBuffer<float>"] = new[] { "Length" },
["ReadOnlyTexture2D<float>"] = new[] { "Width", "Height" },