From 02bb741a8d1b4ed31a65c46b7e43d153b42a7b73 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 31 May 2023 14:28:45 -0700 Subject: Preserve type cast during AST constant folding. (#2912) * Preserve type cast during AST constant folding. Fixes #2891. * Fix. * Fix truncating. * fix test. --------- Co-authored-by: Yong He --- tests/pipeline/ray-tracing/ray-query-subroutine.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pipeline') diff --git a/tests/pipeline/ray-tracing/ray-query-subroutine.slang b/tests/pipeline/ray-tracing/ray-query-subroutine.slang index 3279acc12..74489b6f8 100644 --- a/tests/pipeline/ray-tracing/ray-query-subroutine.slang +++ b/tests/pipeline/ray-tracing/ray-query-subroutine.slang @@ -7,7 +7,7 @@ RWStructuredBuffer gOutput; RaytracingAccelerationStructure gScene; -float3 helper(RayQuery q) +float3 helper(RayQuery q) { RayDesc ray; ray.Origin = 0; -- cgit v1.2.3