Closed jwwalker closed 1 month ago
Does it get fixed if you change Samples/Media/Hlms/Pbs/Metal/VertexShader_vs.metal like this...?
struct PS_INPUT
{
@insertpiece( VStoPS_block )
float4 gl_Position [[position]];
@property( hlms_instanced_stereo )
uint gl_ViewportIndex [[viewport_array_index]];
@end
@property( hlms_pso_clip_distances )
float gl_ClipDistance [[clip_distance]] [@value( hlms_pso_clip_distances )];
@end
};
The necessary functionality was added to Metal 2.0 (macOS) & 2.1 (iOS).
Note that I added the declaration of gl_ViewportIndex
.
@darksylinc Yes, that change does fix it.
Thanks! Pushed it!
System Information
Detailed description
Sample_InstancedStereo
does not run on macOS/Metal.Ogre.log