MacOS Metal GPU backend: wireframe shader node has no output #103606

Closed
opened 2023-01-03 10:35:58 +01:00 by Wouter Stomp · 5 comments

System Information
Operating system: macOS-13.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Max 1.2

Blender Version
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-12-30 13:35, hash: 3340cc8102
Worked: same version on OpenGL

Short description of error
With the metal viewport backend enabled, in shader nodes, the wireframe node produces no results, you get a pink/missing result.

Exact steps for others to reproduce the error
enable metal backend
in the shader editor add a wireframe node and connect it to the viewer

**System Information** Operating system: macOS-13.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Max 1.2 **Blender Version** Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-12-30 13:35, hash: `3340cc8102` Worked: same version on OpenGL **Short description of error** With the metal viewport backend enabled, in shader nodes, the wireframe node produces no results, you get a pink/missing result. **Exact steps for others to reproduce the error** enable metal backend in the shader editor add a wireframe node and connect it to the viewer
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

Added subscriber: @Michael-Parkin-White-Apple

Added subscriber: @Michael-Parkin-White-Apple

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm in Eevee.
There were a shader compilation errors in the console:


2023-01-03 10:17:12.831710-0300 Blender[21378:93356] Compiler failed to build request
2023-01-03 10:17:12.832294-0300 Blender[21378:93356] Compile Error - Metal Shader Library (Stage: 1), error Error Domain=MTLLibraryErrorDomain Code=3 "program_source:2707:9: warning: 'FLT_MAX' macro redefined
#define FLT_MAX 3.402823e+38
        ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:216:9: note: previous definition is here
#define FLT_MAX __FLT_MAX__
        ^
program_source:2708:9: warning: 'FLT_MIN' macro redefined
#define FLT_MIN 1.175494e-38
        ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:217:9: note: previous definition is here
#define FLT_MIN __FLT_MIN__
        ^
program_source:4471:63: warning: '/*' within block comment
  /* return 2 / (1 + sqrt(1 + a2 * (1 - NX*NX) / (NX*NX) ) ); /* Reference function */
                                                              ^
program_source:4484:38: warning: '/*' within block comment
  /* bsdf = D * G / (4.0 * NL * NV); /* Reference function */
                                     ^
program_source:4542:9: warning: unused variable 'gloss'
  float gloss = -2 + 2 / (r * r);
        ^
program_source:5183:8: warning: unused variable 'avg_dir'
  vec3 avg_dir = vec3(0.0);
       ^
program_source:5184:9: warning: unused variable 'avg_apperture'
  float avg_apperture = 0.0;
        ^
program_source:5181:8: warning: unused variable 'uv'
  vec2 uv = get_uvs_from_view(vP);
       ^
program_source:5424:8: warning: unused variable 'rand'
  vec4 rand = texelfetch_noise_tex(gl_FragCoord.xy);
       ^
program_source:5423:8: warning: unused variable 'bent_normal'
  vec3 bent_normal;
       ^
program_source:5891:11: warning: unused variable 'A_a'
    float A_a = 1.0;
          ^
program_source:5910:11: warning: unused variable 'A_d'
    float A_d = D;
          ^
program_source:6494:42: error: use of undeclared identifier 'gpu_position_at_vertex'
  vec3 pos0 = (ProjectionMatrixInverse * gpu_position_at_vertex(0)).xyz;
                                         ^
program_source:6495:42: error: use of undeclared identifier 'gpu_position_at_vertex'
  vec3 pos1 = (ProjectionMatrixInverse * gpu_position_at_vertex(1)).xyz;
                                         ^
program_source:6496:42: error: use of undeclared identifier 'gpu_position_at_vertex'
  vec3 pos2 = (ProjectionMatrixInverse * gpu_position_at_vertex(2)).xyz;
                                         ^
program_source:6564:29: error: use of undeclared identifier 'gpu_BaryCoord'
  surf.barycentric_coords = gpu_BaryCoord.xy;
                            ^
program_source:6811:8: warning: unused variable 'vV'
  vec3 vV = viewCameraVec(vP);
       ^
program_source:7651:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:48:1: note: expanded from here
eval_Dummy_2
^
program_source:7651:1: warning: unused variable 'eval_Dummy_1'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:39:1: note: expanded from here
eval_Dummy_1
^
program_source:7651:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:57:1: note: expanded from here
eval_Dummy_3
^
program_source:7665:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:96:1: note: expanded from here
eval_Dummy_1
^
program_source:7665:1: warning: unused variable 'eval_Dummy_2'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:105:1: note: expanded from here
eval_Dummy_2
^
program_source:7665:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:114:1: note: expanded from here
eval_Dummy_3
^
program_source:7676:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:180:1: note: expanded from here
eval_Dummy_2
^
program_source:7676:1: warning: unused variable 'eval_Dummy_1'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:171:1: note: expanded from here
eval_Dummy_1
^
program_source:7676:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:189:1: note: expanded from here
eval_Dummy_3
^
program_source:7690:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:246:1: note: expanded from here
eval_Dummy_2
^
program_source:7690:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:255:1: note: expanded from here
eval_Dummy_3
^
program_source:7690:1: warning: unused variable 'eval_Dummy_1'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:237:1: note: expanded from here
eval_Dummy_1
^
program_source:7717:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction)
^
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:60:1: note: expanded from here
eval_Dummy_3
^
program_source:7717:1: warning: unused variable 'eval_Dummy_2'
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:51:1: note: expanded from here
eval_Dummy_2
^
program_source:7736:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy)
^
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:133:1: note: expanded from here
eval_Dummy_3
^
program_source:7736:1: warning: unused variable 'eval_Dummy_2'
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:124:1: note: expanded from here
eval_Dummy_2
^
program_source:7758:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy)
^
program_source:6985:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:203:1: note: expanded from here
eval_Dummy_3
^
program_source:7814:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy)
^
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:89:1: note: expanded from here
eval_Dummy_2
^
program_source:7814:1: warning: unused variable 'eval_Dummy_3'
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:98:1: note: expanded from here
eval_Dummy_3
^
program_source:8098:26: error: no member named 'gpu_BaryCoord' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BaryCoord = mtl_barycentric_coord.xyz;
~~~~~~~~~~~~~~~~~~~~~~~~ ^
program_source:8103:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BarycentricDist.x = length(rateOfChange * (1.0-mtl_barycentric_coord.x));
~~~~~~~~~~~~~~~~~~~~~~~~ ^
program_source:8104:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BarycentricDist.y = length(rateOfChange * (1.0-mtl_barycentric_coord.y));
~~~~~~~~~~~~~~~~~~~~~~~~ ^
program_source:8105:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BarycentricDist.z = length(rateOfChange * (1.0-mtl_barycentric_coord.z));
~~~~~~~~~~~~~~~~~~~~~~~~ ^
" UserInfo={NSLocalizedDescription=program_source:2707:9: warning: 'FLT_MAX' macro redefined
#define FLT_MAX 3.402823e+38
        ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:216:9: note: previous definition is here
#define FLT_MAX __FLT_MAX__
        ^
program_source:2708:9: warning: 'FLT_MIN' macro redefined
#define FLT_MIN 1.175494e-38
        ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:217:9: note: previous definition is here
#define FLT_MIN __FLT_MIN__
        ^
program_source:4471:63: warning: '/*' within block comment
  /* return 2 / (1 + sqrt(1 + a2 * (1 - NX*NX) / (NX*NX) ) ); /* Reference function */
                                                              ^
program_source:4484:38: warning: '/*' within block comment
  /* bsdf = D * G / (4.0 * NL * NV); /* Reference function */
                                     ^
program_source:4542:9: warning: unused variable 'gloss'
  float gloss = -2 + 2 / (r * r);
        ^
program_source:5183:8: warning: unused variable 'avg_dir'
  vec3 avg_dir = vec3(0.0);
       ^
program_source:5184:9: warning: unused variable 'avg_apperture'
  float avg_apperture = 0.0;
        ^
program_source:5181:8: warning: unused variable 'uv'
  vec2 uv = get_uvs_from_view(vP);
       ^
program_source:5424:8: warning: unused variable 'rand'
  vec4 rand = texelfetch_noise_tex(gl_FragCoord.xy);
       ^
program_source:5423:8: warning: unused variable 'bent_normal'
  vec3 bent_normal;
       ^
program_source:5891:11: warning: unused variable 'A_a'
    float A_a = 1.0;
          ^
program_source:5910:11: warning: unused variable 'A_d'
    float A_d = D;
          ^
program_source:6494:42: error: use of undeclared identifier 'gpu_position_at_vertex'
  vec3 pos0 = (ProjectionMatrixInverse * gpu_position_at_vertex(0)).xyz;
                                         ^
program_source:6495:42: error: use of undeclared identifier 'gpu_position_at_vertex'
  vec3 pos1 = (ProjectionMatrixInverse * gpu_position_at_vertex(1)).xyz;
                                         ^
program_source:6496:42: error: use of undeclared identifier 'gpu_position_at_vertex'
  vec3 pos2 = (ProjectionMatrixInverse * gpu_position_at_vertex(2)).xyz;
                                         ^
program_source:6564:29: error: use of undeclared identifier 'gpu_BaryCoord'
  surf.barycentric_coords = gpu_BaryCoord.xy;
                            ^
program_source:6811:8: warning: unused variable 'vV'
  vec3 vV = viewCameraVec(vP);
       ^
program_source:7651:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:48:1: note: expanded from here
eval_Dummy_2
^
program_source:7651:1: warning: unused variable 'eval_Dummy_1'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:39:1: note: expanded from here
eval_Dummy_1
^
program_source:7651:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:57:1: note: expanded from here
eval_Dummy_3
^
program_source:7665:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:96:1: note: expanded from here
eval_Dummy_1
^
program_source:7665:1: warning: unused variable 'eval_Dummy_2'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:105:1: note: expanded from here
eval_Dummy_2
^
program_source:7665:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:114:1: note: expanded from here
eval_Dummy_3
^
program_source:7676:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:180:1: note: expanded from here
eval_Dummy_2
^
program_source:7676:1: warning: unused variable 'eval_Dummy_1'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:171:1: note: expanded from here
eval_Dummy_1
^
program_source:7676:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:189:1: note: expanded from here
eval_Dummy_3
^
program_source:7690:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction)
^
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:246:1: note: expanded from here
eval_Dummy_2
^
program_source:7690:1: warning: unused variable 'eval_Dummy_3'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:255:1: note: expanded from here
eval_Dummy_3
^
program_source:7690:1: warning: unused variable 'eval_Dummy_1'
program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \
                  ^
<scratch space>:237:1: note: expanded from here
eval_Dummy_1
^
program_source:7717:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction)
^
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:60:1: note: expanded from here
eval_Dummy_3
^
program_source:7717:1: warning: unused variable 'eval_Dummy_2'
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:51:1: note: expanded from here
eval_Dummy_2
^
program_source:7736:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy)
^
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:133:1: note: expanded from here
eval_Dummy_3
^
program_source:7736:1: warning: unused variable 'eval_Dummy_2'
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:124:1: note: expanded from here
eval_Dummy_2
^
program_source:7758:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy)
^
program_source:6985:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:203:1: note: expanded from here
eval_Dummy_3
^
program_source:7814:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy)
^
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \
                  ^
<scratch space>:89:1: note: expanded from here
eval_Dummy_2
^
program_source:7814:1: warning: unused variable 'eval_Dummy_3'
program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'
  CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
  ^
program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
      CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
      ^
program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE'
  ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3);
                  ^
<scratch space>:98:1: note: expanded from here
eval_Dummy_3
^
program_source:8098:26: error: no member named 'gpu_BaryCoord' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BaryCoord = mtl_barycentric_coord.xyz;
~~~~~~~~~~~~~~~~~~~~~~~~ ^
program_source:8103:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BarycentricDist.x = length(rateOfChange * (1.0-mtl_barycentric_coord.x));
~~~~~~~~~~~~~~~~~~~~~~~~ ^
program_source:8104:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BarycentricDist.y = length(rateOfChange * (1.0-mtl_barycentric_coord.y));
~~~~~~~~~~~~~~~~~~~~~~~~ ^
program_source:8105:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl'
fragment_shader_instance.gpu_BarycentricDist.z = length(rateOfChange * (1.0-mtl_barycentric_coord.z));
~~~~~~~~~~~~~~~~~~~~~~~~ ^
}
2023-01-03 10:17:12.990780-0300 Blender[21378:92527] Successfully compiled PSO for shader: GPU_material_compile (Metal Context: 0x130108000)

I can confirm in Eevee. There were a shader compilation errors in the console: ```lines=20 2023-01-03 10:17:12.831710-0300 Blender[21378:93356] Compiler failed to build request 2023-01-03 10:17:12.832294-0300 Blender[21378:93356] Compile Error - Metal Shader Library (Stage: 1), error Error Domain=MTLLibraryErrorDomain Code=3 "program_source:2707:9: warning: 'FLT_MAX' macro redefined #define FLT_MAX 3.402823e+38 ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:216:9: note: previous definition is here #define FLT_MAX __FLT_MAX__ ^ program_source:2708:9: warning: 'FLT_MIN' macro redefined #define FLT_MIN 1.175494e-38 ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:217:9: note: previous definition is here #define FLT_MIN __FLT_MIN__ ^ program_source:4471:63: warning: '/*' within block comment /* return 2 / (1 + sqrt(1 + a2 * (1 - NX*NX) / (NX*NX) ) ); /* Reference function */ ^ program_source:4484:38: warning: '/*' within block comment /* bsdf = D * G / (4.0 * NL * NV); /* Reference function */ ^ program_source:4542:9: warning: unused variable 'gloss' float gloss = -2 + 2 / (r * r); ^ program_source:5183:8: warning: unused variable 'avg_dir' vec3 avg_dir = vec3(0.0); ^ program_source:5184:9: warning: unused variable 'avg_apperture' float avg_apperture = 0.0; ^ program_source:5181:8: warning: unused variable 'uv' vec2 uv = get_uvs_from_view(vP); ^ program_source:5424:8: warning: unused variable 'rand' vec4 rand = texelfetch_noise_tex(gl_FragCoord.xy); ^ program_source:5423:8: warning: unused variable 'bent_normal' vec3 bent_normal; ^ program_source:5891:11: warning: unused variable 'A_a' float A_a = 1.0; ^ program_source:5910:11: warning: unused variable 'A_d' float A_d = D; ^ program_source:6494:42: error: use of undeclared identifier 'gpu_position_at_vertex' vec3 pos0 = (ProjectionMatrixInverse * gpu_position_at_vertex(0)).xyz; ^ program_source:6495:42: error: use of undeclared identifier 'gpu_position_at_vertex' vec3 pos1 = (ProjectionMatrixInverse * gpu_position_at_vertex(1)).xyz; ^ program_source:6496:42: error: use of undeclared identifier 'gpu_position_at_vertex' vec3 pos2 = (ProjectionMatrixInverse * gpu_position_at_vertex(2)).xyz; ^ program_source:6564:29: error: use of undeclared identifier 'gpu_BaryCoord' surf.barycentric_coords = gpu_BaryCoord.xy; ^ program_source:6811:8: warning: unused variable 'vV' vec3 vV = viewCameraVec(vP); ^ program_source:7651:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:48:1: note: expanded from here eval_Dummy_2 ^ program_source:7651:1: warning: unused variable 'eval_Dummy_1' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:39:1: note: expanded from here eval_Dummy_1 ^ program_source:7651:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:57:1: note: expanded from here eval_Dummy_3 ^ program_source:7665:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:96:1: note: expanded from here eval_Dummy_1 ^ program_source:7665:1: warning: unused variable 'eval_Dummy_2' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:105:1: note: expanded from here eval_Dummy_2 ^ program_source:7665:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:114:1: note: expanded from here eval_Dummy_3 ^ program_source:7676:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:180:1: note: expanded from here eval_Dummy_2 ^ program_source:7676:1: warning: unused variable 'eval_Dummy_1' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:171:1: note: expanded from here eval_Dummy_1 ^ program_source:7676:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:189:1: note: expanded from here eval_Dummy_3 ^ program_source:7690:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:246:1: note: expanded from here eval_Dummy_2 ^ program_source:7690:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:255:1: note: expanded from here eval_Dummy_3 ^ program_source:7690:1: warning: unused variable 'eval_Dummy_1' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:237:1: note: expanded from here eval_Dummy_1 ^ program_source:7717:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction) ^ program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:60:1: note: expanded from here eval_Dummy_3 ^ program_source:7717:1: warning: unused variable 'eval_Dummy_2' program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:51:1: note: expanded from here eval_Dummy_2 ^ program_source:7736:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy) ^ program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:133:1: note: expanded from here eval_Dummy_3 ^ program_source:7736:1: warning: unused variable 'eval_Dummy_2' program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:124:1: note: expanded from here eval_Dummy_2 ^ program_source:7758:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy) ^ program_source:6985:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:203:1: note: expanded from here eval_Dummy_3 ^ program_source:7814:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy) ^ program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:89:1: note: expanded from here eval_Dummy_2 ^ program_source:7814:1: warning: unused variable 'eval_Dummy_3' program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:98:1: note: expanded from here eval_Dummy_3 ^ program_source:8098:26: error: no member named 'gpu_BaryCoord' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BaryCoord = mtl_barycentric_coord.xyz; ~~~~~~~~~~~~~~~~~~~~~~~~ ^ program_source:8103:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BarycentricDist.x = length(rateOfChange * (1.0-mtl_barycentric_coord.x)); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ program_source:8104:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BarycentricDist.y = length(rateOfChange * (1.0-mtl_barycentric_coord.y)); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ program_source:8105:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BarycentricDist.z = length(rateOfChange * (1.0-mtl_barycentric_coord.z)); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ " UserInfo={NSLocalizedDescription=program_source:2707:9: warning: 'FLT_MAX' macro redefined #define FLT_MAX 3.402823e+38 ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:216:9: note: previous definition is here #define FLT_MAX __FLT_MAX__ ^ program_source:2708:9: warning: 'FLT_MIN' macro redefined #define FLT_MIN 1.175494e-38 ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.667/include/metal/metal_types:217:9: note: previous definition is here #define FLT_MIN __FLT_MIN__ ^ program_source:4471:63: warning: '/*' within block comment /* return 2 / (1 + sqrt(1 + a2 * (1 - NX*NX) / (NX*NX) ) ); /* Reference function */ ^ program_source:4484:38: warning: '/*' within block comment /* bsdf = D * G / (4.0 * NL * NV); /* Reference function */ ^ program_source:4542:9: warning: unused variable 'gloss' float gloss = -2 + 2 / (r * r); ^ program_source:5183:8: warning: unused variable 'avg_dir' vec3 avg_dir = vec3(0.0); ^ program_source:5184:9: warning: unused variable 'avg_apperture' float avg_apperture = 0.0; ^ program_source:5181:8: warning: unused variable 'uv' vec2 uv = get_uvs_from_view(vP); ^ program_source:5424:8: warning: unused variable 'rand' vec4 rand = texelfetch_noise_tex(gl_FragCoord.xy); ^ program_source:5423:8: warning: unused variable 'bent_normal' vec3 bent_normal; ^ program_source:5891:11: warning: unused variable 'A_a' float A_a = 1.0; ^ program_source:5910:11: warning: unused variable 'A_d' float A_d = D; ^ program_source:6494:42: error: use of undeclared identifier 'gpu_position_at_vertex' vec3 pos0 = (ProjectionMatrixInverse * gpu_position_at_vertex(0)).xyz; ^ program_source:6495:42: error: use of undeclared identifier 'gpu_position_at_vertex' vec3 pos1 = (ProjectionMatrixInverse * gpu_position_at_vertex(1)).xyz; ^ program_source:6496:42: error: use of undeclared identifier 'gpu_position_at_vertex' vec3 pos2 = (ProjectionMatrixInverse * gpu_position_at_vertex(2)).xyz; ^ program_source:6564:29: error: use of undeclared identifier 'gpu_BaryCoord' surf.barycentric_coords = gpu_BaryCoord.xy; ^ program_source:6811:8: warning: unused variable 'vV' vec3 vV = viewCameraVec(vP); ^ program_source:7651:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:48:1: note: expanded from here eval_Dummy_2 ^ program_source:7651:1: warning: unused variable 'eval_Dummy_1' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:39:1: note: expanded from here eval_Dummy_1 ^ program_source:7651:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:57:1: note: expanded from here eval_Dummy_3 ^ program_source:7665:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:96:1: note: expanded from here eval_Dummy_1 ^ program_source:7665:1: warning: unused variable 'eval_Dummy_2' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:105:1: note: expanded from here eval_Dummy_2 ^ program_source:7665:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:114:1: note: expanded from here eval_Dummy_3 ^ program_source:7676:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:180:1: note: expanded from here eval_Dummy_2 ^ program_source:7676:1: warning: unused variable 'eval_Dummy_1' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:171:1: note: expanded from here eval_Dummy_1 ^ program_source:7676:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:189:1: note: expanded from here eval_Dummy_3 ^ program_source:7690:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction) ^ program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:246:1: note: expanded from here eval_Dummy_2 ^ program_source:7690:1: warning: unused variable 'eval_Dummy_3' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:255:1: note: expanded from here eval_Dummy_3 ^ program_source:7690:1: warning: unused variable 'eval_Dummy_1' program_source:6981:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6892:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t1 eval_##t1##_1 = closure_##t1##_eval_init(in_##t1##_1, cl_common, out_##t1##_1); \ ^ <scratch space>:237:1: note: expanded from here eval_Dummy_1 ^ program_source:7717:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction) ^ program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:60:1: note: expanded from here eval_Dummy_3 ^ program_source:7717:1: warning: unused variable 'eval_Dummy_2' program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:51:1: note: expanded from here eval_Dummy_2 ^ program_source:7736:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy) ^ program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:133:1: note: expanded from here eval_Dummy_3 ^ program_source:7736:1: warning: unused variable 'eval_Dummy_2' program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:124:1: note: expanded from here eval_Dummy_2 ^ program_source:7758:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy) ^ program_source:6985:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:203:1: note: expanded from here eval_Dummy_3 ^ program_source:7814:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy) ^ program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6893:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t2 eval_##t2##_2 = closure_##t2##_eval_init(in_##t2##_2, cl_common, out_##t2##_2); \ ^ <scratch space>:89:1: note: expanded from here eval_Dummy_2 ^ program_source:7814:1: warning: unused variable 'eval_Dummy_3' program_source:6983:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ program_source:6918:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ program_source:6894:19: note: expanded from macro 'CLOSURE_EVAL_DECLARE' ClosureEval##t3 eval_##t3##_3 = closure_##t3##_eval_init(in_##t3##_3, cl_common, out_##t3##_3); ^ <scratch space>:98:1: note: expanded from here eval_Dummy_3 ^ program_source:8098:26: error: no member named 'gpu_BaryCoord' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BaryCoord = mtl_barycentric_coord.xyz; ~~~~~~~~~~~~~~~~~~~~~~~~ ^ program_source:8103:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BarycentricDist.x = length(rateOfChange * (1.0-mtl_barycentric_coord.x)); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ program_source:8104:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BarycentricDist.y = length(rateOfChange * (1.0-mtl_barycentric_coord.y)); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ program_source:8105:26: error: no member named 'gpu_BarycentricDist' in 'MTLShaderFragmentImpl' fragment_shader_instance.gpu_BarycentricDist.z = length(rateOfChange * (1.0-mtl_barycentric_coord.z)); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ } 2023-01-03 10:17:12.990780-0300 Blender[21378:92527] Successfully compiled PSO for shader: GPU_material_compile (Metal Context: 0x130108000) ```
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:11:57 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-03-14 08:23:19 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#103606
No description provided.