From 695051146be19c67cfc5119e53bc77a2cdd5bfa6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 21 Nov 2022 13:43:47 +0100 Subject: [PATCH] Tweak exception message for PixelShaderEffecty initialization --- .../Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs index 6c574e1f..0befc486 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs @@ -128,8 +128,8 @@ internal unsafe partial struct PixelShaderEffect if (For.d2D1DrawTransformMapperFactory != d2D1DrawTransformMapperFactory) { ThrowHelper.ThrowInvalidOperationException( - "Cannot initialize an ID2D1Effect factory for the same shader type with two different transform mappings. " + - "Make sure to only ever register a pixel shader effect with either no transform, or the same transform type."); + "Cannot initialize an ID2D1Effect factory for the same shader type with two different transform mapper factories. " + + "Make sure to only ever register a pixel shader effect with either no transform, or the same transform mapper factory instance."); } } else