Add unit tests for GetConstantBufferSize<T>()
このコミットが含まれているのは:
1 親
aa9ed772ba
コミット
584bffa98f
1ファイル変更
+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()
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする