Set D2D1 enum values to be the same as D2D1 ones
Also some minor tweaks to the enums
このコミットが含まれているのは:
1 親
966f5ee06d
コミット
e81a39d27a
3ファイル変更
+20
-16
検索条件に一致するファイルはありません
@@ -47,9 +47,9 @@ public partial class D2D1InteropServicesTests
|
||||
public unsafe void GetOutputBufferPrecision()
|
||||
{
|
||||
Assert.AreEqual(D2D1PixelShader.GetOutputBufferPrecision<ShaderWithMultipleInputs>(), D2D1BufferPrecision.Unknown);
|
||||
Assert.AreEqual(D2D1PixelShader.GetOutputBufferPrecision<OnlyBufferPrecisionShader>(), D2D1BufferPrecision.Int16Normalized);
|
||||
Assert.AreEqual(D2D1PixelShader.GetOutputBufferPrecision<OnlyBufferPrecisionShader>(), D2D1BufferPrecision.UInt16Normalized);
|
||||
Assert.AreEqual(D2D1PixelShader.GetOutputBufferPrecision<OnlyChannelDepthShader>(), D2D1BufferPrecision.Unknown);
|
||||
Assert.AreEqual(D2D1PixelShader.GetOutputBufferPrecision<CustomBufferOutputShader>(), D2D1BufferPrecision.Int8NormalizedSRGB);
|
||||
Assert.AreEqual(D2D1PixelShader.GetOutputBufferPrecision<CustomBufferOutputShader>(), D2D1BufferPrecision.UInt8NormalizedSrgb);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
@@ -71,7 +71,7 @@ public partial class D2D1InteropServicesTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.Int16Normalized)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.UInt16Normalized)]
|
||||
partial struct OnlyBufferPrecisionShader : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -91,7 +91,7 @@ public partial class D2D1InteropServicesTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.Int8NormalizedSRGB, D2D1ChannelDepth.One)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.UInt8NormalizedSrgb, D2D1ChannelDepth.One)]
|
||||
partial struct CustomBufferOutputShader : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする