"Compiler failed to build request" when creating MTLRenderPipelineState

When creating an MTLRenderPipelineState:

[device newRenderPipelineStateWithDescriptor:pipelineDescriptor error:&error]

the log output is like this:

2022-09-07 15:44:12.857438+0200 game[4177:155444] Compiler failed to build request

And the error variable contains:

error	NSError *	domain: "AGXMetalG13X" - code: 3	0x0000000156a203b0

I know the error is in my fragment shader but, is there a way to get a more descriptive description of what happend?

Thanks

Answered by wasintw in 728658022

Ok, I answer myself:

NSLog(@"Whatever: %@", error);

Accepted Answer

Ok, I answer myself:

NSLog(@"Whatever: %@", error);

"Compiler failed to build request" when creating MTLRenderPipelineState
 
 
Q