From d1f944c18634f215c3da0484ac3b80e994118680 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Thu, 18 Nov 2021 14:25:30 +0100 Subject: Cycles: declare constants at program scope on Metal MSL requires that constant address space literals be declared at program scope. This patch moves the `blackbody_table_r/g/b` and `cie_colour_match` constants into separate files so they can be declared at the appropriate scope. Ref T92212 Differential Revision: https://developer.blender.org/D13241 --- intern/cycles/util/defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/defines.h b/intern/cycles/util/defines.h index edc36b14745..a2e8d83adb7 100644 --- a/intern/cycles/util/defines.h +++ b/intern/cycles/util/defines.h @@ -72,7 +72,7 @@ /* Address spaces for GPU. */ # define ccl_global -# define ccl_static_constant static const +# define ccl_inline_constant inline constexpr # define ccl_constant const # define ccl_private -- cgit v1.2.3