From 28adf8917e53953dbfebd746410a427a55eed814 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 9 Sep 2021 11:39:04 -0700 Subject: `reinterpret` and 16-bit value packing. (#1933) * `reinterpret` and 16-bit value packing. * Update `half-texture` cross-compile test reference result. * Revert inadvertent reformatting of slang-ir-inst-defs.h Co-authored-by: Yong He --- tests/compute/half-texture.slang.1.expected | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/compute/half-texture.slang.1.expected') diff --git a/tests/compute/half-texture.slang.1.expected b/tests/compute/half-texture.slang.1.expected index 7dd96403f..cd1f1e4f7 100644 --- a/tests/compute/half-texture.slang.1.expected +++ b/tests/compute/half-texture.slang.1.expected @@ -5,11 +5,11 @@ standard output = { #pragma pack_matrix(column_major) #line 8 "tests/compute/half-texture.slang" -RWTexture2D halfTexture_0 : register(u1); +RWTexture2D halfTexture_0 : register(u1); -RWTexture2D > halfTexture2_0 : register(u2); +RWTexture2D > halfTexture2_0 : register(u2); -RWTexture2D > halfTexture4_0 : register(u3); +RWTexture2D > halfTexture4_0 : register(u3); #line 5 @@ -27,15 +27,15 @@ void computeMain(vector dispatchThreadID_0 : SV_DISPATCHTHREADID) vector pos2_0 = vector(int(3) - pos_0.y, int(3) - pos_0.x); #line 29 - half h_0 = halfTexture_0[(vector) pos2_0]; - vector h2_0 = halfTexture2_0[(vector) pos2_0]; - vector h4_0 = halfTexture4_0[(vector) pos2_0]; + min16float h_0 = halfTexture_0[(vector) pos2_0]; + vector h2_0 = halfTexture2_0[(vector) pos2_0]; + vector h4_0 = halfTexture4_0[(vector) pos2_0]; halfTexture_0[(vector) pos_0] = h2_0.x + h2_0.y; halfTexture2_0[(vector) pos_0] = h4_0.xy; - halfTexture4_0[(vector) pos_0] = vector(h2_0, h_0, h_0); + halfTexture4_0[(vector) pos_0] = vector(h2_0, h_0, h_0); int index_0 = pos_0.x + pos_0.y * int(4); outputBuffer_0[(uint) index_0] = index_0; -- cgit v1.2.3