Metal backend shows everything in pink #103635

Closed
opened 2023-01-04 11:32:05 +01:00 by Steve Hanff · 16 comments

Opening any demo file shows all "pink" shaders / textures.
Files I did try is the "wanderer.blend" and "tree_creature.blend".

Deleting the shader folder generated by the Metal backend does not fix things.

Switching the backend to OpenGL resolves the issue.

Operating system: Mac OS Ventura 13.1
Graphics card: M1 Max

Broken: 3.5 alpha build 03abc38624 and build 1beaec46b8
Worked: c8741a3c03

Screenshot 2023-01-04 at 11.31.31.png

default cube with a basic principled shader seems fine.

also quite interesting, here is mr elephant
Screenshot 2023-01-04 at 17.06.51.png

It looks like everything that has an image texture does not work.
Linking does work to the image texture but only if I drag it from the Principled BSDF to the image texture and not the other way around (which always worked till now).
And suddenly the node connecting works "both ways" something is funky...

Ok seems a but and not sure if it needs another ticket:
Start Blender = node connection broken
Connect if from right to left works.
Disconnect
Connect fron left to right works now too.
Restart blender or switch to the next object and make a new material and it is broken again.

Opening any demo file shows all "pink" shaders / textures. Files I did try is the "wanderer.blend" and "tree_creature.blend". Deleting the shader folder generated by the Metal backend does not fix things. Switching the backend to OpenGL resolves the issue. Operating system: Mac OS Ventura 13.1 Graphics card: M1 Max Broken: 3.5 alpha build 03abc3862423 and build 1beaec46b8e3 Worked: c8741a3c0336 ![Screenshot 2023-01-04 at 11.31.31.png](https://archive.blender.org/developer/F14113199/Screenshot_2023-01-04_at_11.31.31.png) default cube with a basic principled shader seems fine. also quite interesting, here is mr elephant ![Screenshot 2023-01-04 at 17.06.51.png](https://archive.blender.org/developer/F14113765/Screenshot_2023-01-04_at_17.06.51.png) It looks like everything that has an image texture does not work. Linking does work to the image texture but only if I drag it from the Principled BSDF to the image texture and not the other way around (which always worked till now). And suddenly the node connecting works "both ways" something is funky... Ok seems a but and not sure if it needs another ticket: Start Blender = node connection broken Connect if from right to left works. Disconnect Connect fron left to right works now too. Restart blender or switch to the next object and make a new material and it is broken again.
Author

Added subscriber: @Steve-Hanff

Added subscriber: @Steve-Hanff

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

I can confirm, I get the same results.

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: 2023-01-04 23:36, hash: a7cc6e015c

I can confirm, I get the same results. **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: 2023-01-04 23:36, hash: `a7cc6e015c`

Here are the errors it gives in the console:

2023-01-05 11:17:51.692 Blender[24610:2227682] Compile Error - Metal Shader Library (Stage: 0), error Error Domain=MTLLibraryErrorDomain Code=3 "program_source:2870: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:2871: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:5449:63: warning: '/*' within block comment

/* return 2 / (1 + sqrt(1 + a2 * (1 - NXNX) / (NXNX) ) ); /* Reference function */
^

program_source:5462:38: warning: '/*' within block comment

/* bsdf = D * G / (4.0 * NL * NV); /* Reference function */
^

program_source:3918:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.164), 0.0, -0.392, 2.017, 1.596, -0.813, 0.0) * ycca.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:3926:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.164), 0.0, -0.213, 2.115, 1.793, -0.534, 0.0) * ycca.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:3933:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.0), 0.0, -0.34414, 1.772, 1.402, -0.71414, 0.0) * ycca.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:3967:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.0), 0.0, -0.21482, 2.12798, 1.28033, -0.38059, 0.0) * yuva.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:5520:9: warning: unused variable 'gloss'

float gloss = -2 + 2 / (r * r);
^

program_source:6161:8: warning: unused variable 'avg_dir'

vec3 avg_dir = vec3(0.0);
^

program_source:6162:9: warning: unused variable 'avg_apperture'

float avg_apperture = 0.0;
^

program_source:6159:8: warning: unused variable 'uv'

vec2 uv = get_uvs_from_view(vP);
^

program_source:6869:11: warning: unused variable 'A_a'

float A_a = 1.0;
^

program_source:6888:11: warning: unused variable 'A_d'

float A_d = D;
^

program_source:7617:8: warning: unused variable 'vV'

vec3 vV = viewCameraVec(vP);
^

program_source:8457:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8457:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8457:1: warning: unused variable 'eval_Dummy_1'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8471:1: warning: unused variable 'eval_Dummy_2'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8482:1: warning: unused variable 'eval_Dummy_2'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8496:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8496:1: warning: unused variable 'eval_Dummy_2'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8496:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction)
^
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_2'
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy)
^
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_3'
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8564:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy)
^
program_source:7791:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy)
^
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_2'
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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
^
" UserInfo={NSLocalizedDescription=program_source:2870: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:2871: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:5449:63: warning: '/*' within block comment

/* return 2 / (1 + sqrt(1 + a2 * (1 - NXNX) / (NXNX) ) ); /* Reference function */
^

program_source:5462:38: warning: '/*' within block comment

/* bsdf = D * G / (4.0 * NL * NV); /* Reference function */
^

program_source:3918:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.164), 0.0, -0.392, 2.017, 1.596, -0.813, 0.0) * ycca.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:3926:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.164), 0.0, -0.213, 2.115, 1.793, -0.534, 0.0) * ycca.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:3933:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.0), 0.0, -0.34414, 1.772, 1.402, -0.71414, 0.0) * ycca.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:3967:15: error: no matching function for call to 'MAT3x3'

color.rgb = MAT3(vec3(1.0), 0.0, -0.21482, 2.12798, 1.28033, -0.38059, 0.0) * yuva.xyz;
^~~~

program_source:1419:14: note: expanded from macro 'MAT3'
# define MAT3 MAT3x3
       ^~~~~~
program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided
mat3 MAT3x3(

^

program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided
mat3 MAT3x3(vec3 a, vec3 b, vec3 c)

^

program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat2 m)

^

program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided
mat3 MAT3x3(mat4 m)

^

program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided
mat3 MAT3x3(float f)

^

program_source:5520:9: warning: unused variable 'gloss'

float gloss = -2 + 2 / (r * r);
^

program_source:6161:8: warning: unused variable 'avg_dir'

vec3 avg_dir = vec3(0.0);
^

program_source:6162:9: warning: unused variable 'avg_apperture'

float avg_apperture = 0.0;
^

program_source:6159:8: warning: unused variable 'uv'

vec2 uv = get_uvs_from_view(vP);
^

program_source:6869:11: warning: unused variable 'A_a'

float A_a = 1.0;
^

program_source:6888:11: warning: unused variable 'A_d'

float A_d = D;
^

program_source:7617:8: warning: unused variable 'vV'

vec3 vV = viewCameraVec(vP);
^

program_source:8457:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8457:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8457:1: warning: unused variable 'eval_Dummy_1'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8471:1: warning: unused variable 'eval_Dummy_2'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8482:1: warning: unused variable 'eval_Dummy_2'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8496:1: warning: unused variable 'eval_Dummy_1'
CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction)
^
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7698: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:8496:1: warning: unused variable 'eval_Dummy_2'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8496:1: warning: unused variable 'eval_Dummy_3'
program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction)
^
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_2'
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_2'
CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy)
^
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_3'
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8564:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy)
^
program_source:7791:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_3'
CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy)
^
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_2'
program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2'

CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy)
^

program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE'
CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \
^
program_source:7699: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
^
} 
2023-01-05 11:17:51.985 Blender[24610:2227291] Successfully compiled PSO for shader: GPU_material_compile (Metal Context: 0x160140000)

Might be fixed with d7598c808116?

Here are the errors it gives in the console: ``` lines=12 2023-01-05 11:17:51.692 Blender[24610:2227682] Compile Error - Metal Shader Library (Stage: 0), error Error Domain=MTLLibraryErrorDomain Code=3 "program_source:2870: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:2871: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:5449:63: warning: '/*' within block comment ``` /* return 2 / (1 + sqrt(1 + a2 * (1 - NX*NX) / (NX*NX) ) ); /* Reference function */ ^ ``` program_source:5462:38: warning: '/*' within block comment ``` /* bsdf = D * G / (4.0 * NL * NV); /* Reference function */ ^ ``` program_source:3918:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.164), 0.0, -0.392, 2.017, 1.596, -0.813, 0.0) * ycca.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:3926:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.164), 0.0, -0.213, 2.115, 1.793, -0.534, 0.0) * ycca.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:3933:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.0), 0.0, -0.34414, 1.772, 1.402, -0.71414, 0.0) * ycca.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:3967:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.0), 0.0, -0.21482, 2.12798, 1.28033, -0.38059, 0.0) * yuva.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:5520:9: warning: unused variable 'gloss' ``` float gloss = -2 + 2 / (r * r); ^ ``` program_source:6161:8: warning: unused variable 'avg_dir' ``` vec3 avg_dir = vec3(0.0); ^ ``` program_source:6162:9: warning: unused variable 'avg_apperture' ``` float avg_apperture = 0.0; ^ ``` program_source:6159:8: warning: unused variable 'uv' ``` vec2 uv = get_uvs_from_view(vP); ^ ``` program_source:6869:11: warning: unused variable 'A_a' ``` float A_a = 1.0; ^ ``` program_source:6888:11: warning: unused variable 'A_d' ``` float A_d = D; ^ ``` program_source:7617:8: warning: unused variable 'vV' ``` vec3 vV = viewCameraVec(vP); ^ ``` program_source:8457:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8457:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8457:1: warning: unused variable 'eval_Dummy_1' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8471:1: warning: unused variable 'eval_Dummy_2' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8482:1: warning: unused variable 'eval_Dummy_2' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8496:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8496:1: warning: unused variable 'eval_Dummy_2' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8496:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction) ^ program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_2' program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy) ^ program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_3' program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8564:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy) ^ program_source:7791:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy) ^ program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_2' program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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 ^ " UserInfo={NSLocalizedDescription=program_source:2870: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:2871: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:5449:63: warning: '/*' within block comment ``` /* return 2 / (1 + sqrt(1 + a2 * (1 - NX*NX) / (NX*NX) ) ); /* Reference function */ ^ ``` program_source:5462:38: warning: '/*' within block comment ``` /* bsdf = D * G / (4.0 * NL * NV); /* Reference function */ ^ ``` program_source:3918:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.164), 0.0, -0.392, 2.017, 1.596, -0.813, 0.0) * ycca.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:3926:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.164), 0.0, -0.213, 2.115, 1.793, -0.534, 0.0) * ycca.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:3933:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.0), 0.0, -0.34414, 1.772, 1.402, -0.71414, 0.0) * ycca.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:3967:15: error: no matching function for call to 'MAT3x3' ``` color.rgb = MAT3(vec3(1.0), 0.0, -0.21482, 2.12798, 1.28033, -0.38059, 0.0) * yuva.xyz; ^~~~ ``` program_source:1419:14: note: expanded from macro 'MAT3' # define MAT3 MAT3x3 ``` ^~~~~~ ``` program_source:1359:6: note: candidate function not viable: requires 9 arguments, but 7 were provided mat3 MAT3x3( ``` ^ ``` program_source:1355:6: note: candidate function not viable: requires 3 arguments, but 7 were provided mat3 MAT3x3(vec3 a, vec3 b, vec3 c) ``` ^ ``` program_source:1372:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat2 m) ``` ^ ``` program_source:1368:6: note: candidate function not viable: requires single argument 'm', but 7 arguments were provided mat3 MAT3x3(mat4 m) ``` ^ ``` program_source:1364:6: note: candidate function not viable: requires single argument 'f', but 7 arguments were provided mat3 MAT3x3(float f) ``` ^ ``` program_source:5520:9: warning: unused variable 'gloss' ``` float gloss = -2 + 2 / (r * r); ^ ``` program_source:6161:8: warning: unused variable 'avg_dir' ``` vec3 avg_dir = vec3(0.0); ^ ``` program_source:6162:9: warning: unused variable 'avg_apperture' ``` float avg_apperture = 0.0; ^ ``` program_source:6159:8: warning: unused variable 'uv' ``` vec2 uv = get_uvs_from_view(vP); ^ ``` program_source:6869:11: warning: unused variable 'A_a' ``` float A_a = 1.0; ^ ``` program_source:6888:11: warning: unused variable 'A_d' ``` float A_d = D; ^ ``` program_source:7617:8: warning: unused variable 'vV' ``` vec3 vV = viewCameraVec(vP); ^ ``` program_source:8457:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_1(DiffuseBSDF, Diffuse) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8457:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8457:1: warning: unused variable 'eval_Dummy_1' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(TranslucentBSDF, Translucent) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8471:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8471:1: warning: unused variable 'eval_Dummy_2' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(GlossyBSDF, Glossy) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8482:1: warning: unused variable 'eval_Dummy_2' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8482:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8496:1: warning: unused variable 'eval_Dummy_1' CLOSURE_EVAL_FUNCTION_DECLARE_1(RefractionBSDF, Refraction) ^ program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7698: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:8496:1: warning: unused variable 'eval_Dummy_2' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8496:1: warning: unused variable 'eval_Dummy_3' program_source:7787:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_1' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, Dummy, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(GlassBSDF, Glossy, Refraction) ^ program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8523:1: warning: unused variable 'eval_Dummy_2' program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_2' CLOSURE_EVAL_FUNCTION_DECLARE_2(DielectricBSDF, Diffuse, Glossy) ^ program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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:8542:1: warning: unused variable 'eval_Dummy_3' program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8564:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_3(SpecularBSDF, Diffuse, Glossy, Glossy) ^ program_source:7791:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_3' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, t2, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_3' CLOSURE_EVAL_FUNCTION_DECLARE_2(PrincipledBSDFMetalClearCoat, Glossy, Glossy) ^ program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7700: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:8620:1: warning: unused variable 'eval_Dummy_2' program_source:7789:3: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE_2' ``` CLOSURE_EVAL_FUNCTION_DECLARE(name, t0, t1, Dummy, Dummy) ^ ``` program_source:7724:7: note: expanded from macro 'CLOSURE_EVAL_FUNCTION_DECLARE' ``` CLOSURE_EVAL_DECLARE(t0, t1, t2, t3); \ ^ ``` program_source:7699: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 ^ } 2023-01-05 11:17:51.985 Blender[24610:2227291] Successfully compiled PSO for shader: GPU_material_compile (Metal Context: 0x160140000) ``` Might be fixed with d7598c808116?
Author

I can confirm that, same errors here in the console.
I get those as soon as I connect the image texture to the base color node.
"Left to right" node connection is fixed in build a7cc6e015c however, which was broken in 2 other builds mentioned above.

Also if it helps it broke between build aad8f1a41b and 03abc38624

Could it be related to one of these ?
https://developer.blender.org/rBecd45336156b7b0c172023f3915617e6841b7389
or
https://developer.blender.org/rBa6355a4542db6689b269b51b11aaaa6425471a0a

I can confirm that, same errors here in the console. I get those as soon as I connect the image texture to the base color node. "Left to right" node connection is fixed in build a7cc6e015cf9 however, which was broken in 2 other builds mentioned above. Also if it helps it broke between build aad8f1a41bf3 and 03abc3862423 Could it be related to one of these ? https://developer.blender.org/rBecd45336156b7b0c172023f3915617e6841b7389 or https://developer.blender.org/rBa6355a4542db6689b269b51b11aaaa6425471a0a

Added subscriber: @Michael-Parkin-White-Apple

Added subscriber: @Michael-Parkin-White-Apple
Member

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

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

Looks like build bc5337a05a fixes it

Looks like build bc5337a05a22 fixes it

Yes, confirmed fixed here as well.

Yes, confirmed fixed here as well.

I believe one of Jeroen's patches d7598c8081168b45bda70bee41003d8e5b622bed will have fixed this after re-adding mat3 constructor overloads which had been removed in a refactor. The DIFF submitted above (D16923) addresses the secondary cause of the issue by removing cases where floats and vec3's are used simultaneously in the constructor. This was a simplification for the API suggested by Clément.

The other patch also contains a few secondary compilation failures which may not be hitting in all cases, but will affect situations where tone mapping is used, so while this issue may be fixed, it will still be important for the above DIFF to land as well :)

I believe one of Jeroen's patches `d7598c8081168b45bda70bee41003d8e5b622bed` will have fixed this after re-adding mat3 constructor overloads which had been removed in a refactor. The DIFF submitted above ([D16923](https://archive.blender.org/developer/D16923)) addresses the secondary cause of the issue by removing cases where floats and vec3's are used simultaneously in the constructor. This was a simplification for the API suggested by Clément. The other patch also contains a few secondary compilation failures which may not be hitting in all cases, but will affect situations where tone mapping is used, so while this issue may be fixed, it will still be important for the above DIFF to land as well :)
Author

Ah ok thanks for the info.

Question: I noticed that the shaders are compiled on the CPU at the moment (can see it well with the PartyTug demo file). Will that always stay on CPU or be moved to the GPU at some point.

Other thing is it normal that CPU load is only like 50% when shaders are compiled?

Ah ok thanks for the info. Question: I noticed that the shaders are compiled on the CPU at the moment (can see it well with the PartyTug demo file). Will that always stay on CPU or be moved to the GPU at some point. Other thing is it normal that CPU load is only like 50% when shaders are compiled?

In #103635#1470140, @Steve-Hanff wrote:
Ah ok thanks for the info.

Question: I noticed that the shaders are compiled on the CPU at the moment (can see it well with the PartyTug demo file). Will that always stay on CPU or be moved to the GPU at some point.

Other thing is it normal that CPU load is only like 50% when shaders are compiled?

Shaders are generally always compiled on the CPU (via system drivers), this is the same for both OpenGL, Metal and other APIs. However, once the Metal viewport has stabilised, shader compiler performance is something that I'm very keen on improving. As per some of the tasks outlined in: https://developer.blender.org/T96261, we're looking to improve this on multiple levels.

As shader compilations are split into front-end and backend (Front-end compilations are source translation to some intermediate representation, which is platform agnostic and can also happen at build time for static shaders. Backend is generation of final GPU instructions which is unique per driver and GPU Hardware combination.), we aim to make as many compilations non-blocking as possible.

This means that while Front-end compilations in EEVEE are currently non-blocking when editing materials, as they happen on a separate thread, PSO compilations can incur stalls when materials are updated, so this would be good to improve. However, for export renders, the render does indeed need to wait until shaders have finished, as they are needed immediately to produce the final image.

Secondly, as Metal gives us a great deal of control over multithreading and shader compilation, I want to aim to ensure shader compilation is as efficient as it can be. At the same time, also making sure we are not performing any redundant re-compilations, and ensuring work is effectively cached between runs of Blender.

> In #103635#1470140, @Steve-Hanff wrote: > Ah ok thanks for the info. > > Question: I noticed that the shaders are compiled on the CPU at the moment (can see it well with the PartyTug demo file). Will that always stay on CPU or be moved to the GPU at some point. > > Other thing is it normal that CPU load is only like 50% when shaders are compiled? Shaders are generally always compiled on the CPU (via system drivers), this is the same for both OpenGL, Metal and other APIs. However, once the Metal viewport has stabilised, shader compiler performance is something that I'm very keen on improving. As per some of the tasks outlined in: `https://developer.blender.org/T96261`, we're looking to improve this on multiple levels. As shader compilations are split into front-end and backend (Front-end compilations are source translation to some intermediate representation, which is platform agnostic and can also happen at build time for static shaders. Backend is generation of final GPU instructions which is unique per driver and GPU Hardware combination.), we aim to make as many compilations non-blocking as possible. This means that while Front-end compilations in EEVEE are currently non-blocking when editing materials, as they happen on a separate thread, PSO compilations can incur stalls when materials are updated, so this would be good to improve. However, for export renders, the render does indeed need to wait until shaders have finished, as they are needed immediately to produce the final image. Secondly, as Metal gives us a great deal of control over multithreading and shader compilation, I want to aim to ensure shader compilation is as efficient as it can be. At the same time, also making sure we are not performing any redundant re-compilations, and ensuring work is effectively cached between runs of Blender.
Author

Awesome, thanks for the detailed answer.

Out of curiosity, why are they not saved in the blender file and need to be recompiled each time you reopen the project?

Awesome, thanks for the detailed answer. Out of curiosity, why are they not saved in the blender file and need to be recompiled each time you reopen the project?
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

This issue was referenced by 0ba5954bb2

This issue was referenced by 0ba5954bb27b4fee5d0ed1a14feb91118b6f3fad

It seems like this can be fully closed now?

It seems like this can be fully closed now?
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-09-03 06:27:06 +02: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
6 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#103635
No description provided.