Xcode Metal Capture crash when using MTLSamplerState

The sample code just draw a triangle and sample texture.

both sample code can draw a correct triangle and sample texture as expected. there are no error message from terminal.

Sample code using constexpr Sampler can capture and replay well.

Sample code using a argumentTable to bind a MTLSamplerState was crashed when using Metal capture and replay on Xcode.

Here are sample codes.

Sample Code

Test Environment: M1 Pro MacOS 26.3 (25D125) Xcode Version 26.2 (17C52)

Feedback ID: FB22031701

Xcode Metal Capture crash when using MTLSamplerState
 
 
Q