Skip to content

Commit

Permalink
[Metal] Fix Instanced Stereo on iOS / macOS
Browse files Browse the repository at this point in the history
Fixes #464
  • Loading branch information
darksylinc committed Sep 23, 2024
1 parent 425e222 commit 2300f52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Samples/Media/Hlms/Pbs/Metal/VertexShader_vs.metal
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ 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
Expand Down

0 comments on commit 2300f52

Please sign in to comment.