Add unit tests for GetConstantBufferSize<T>()

このコミットが含まれているのは:
Sergio Pedri committed 2022-06-17 11:57:48 +02:00
1 親 aa9ed772ba
コミット 584bffa98f
1ファイル変更
+13
+13
ファイルの表示
@@ -276,6 +276,19 @@ public partial class D2D1PixelShaderTests
}
}
[TestMethod]
public unsafe void GetConstantBufferSize()
{
int size = D2D1PixelShader.GetConstantBufferSize<ShaderWithScalarVectorAndMatrixTypes>();
Assert.AreEqual(size, 124);
// Repeated calls always return the same result
size = D2D1PixelShader.GetConstantBufferSize<ShaderWithScalarVectorAndMatrixTypes>();
Assert.AreEqual(size, 124);
}
[TestMethod]
public unsafe void GetConstantBuffer_ReadOnlyMemory()
{