DiligentSamples
                                
                                
                                
                                    DiligentSamples copied to clipboard
                            
                            
                            
                        VRS tutorial crashes on iOS
I'm getting the following run-time when trying to run VRS example (XCode 13.2.1):
Diligent Engine: ERROR in ShaderMtlImpl() (ShaderMtlImpl.mm, 423): Failed to compile MSL source: program_source:9:10: fatal error: 'Structures.fxh' file not found #include "Structures.fxh" ^~~~~~~~~~~~~~~~
Diligent Engine: ERROR in CreateDeviceObject() (RenderDeviceBase.hpp, 511): Failed to create Shader object 'Blit - VS'
Diligent Engine: ERROR in ShaderMtlImpl() (ShaderMtlImpl.mm, 423): Failed to compile MSL source: program_source:9:10: fatal error: 'Structures.fxh' file not found #include "Structures.fxh" ^~~~~~~~~~~~~~~~
Diligent Engine: ERROR in CreateDeviceObject() (RenderDeviceBase.hpp, 511): Failed to create Shader object 'Blit - PS'
Diligent Engine: ERROR in ValidateGraphicsPipelineCreateInfo() (PipelineStateBase.cpp, 554): Description of graphics PSO 'Blit to swapchain image' is invalid: Vertex shader must not be null.
Diligent Engine: ERROR in CreateDeviceObject() (RenderDeviceBase.hpp, 511): Failed to create Pipeline State object 'Blit to swapchain image'
For some reason Metal can't open include files even though they are in the package when compiling shaders on iOS.