DiligentSamples icon indicating copy to clipboard operation
DiligentSamples copied to clipboard

VRS tutorial crashes on iOS

Open speedym opened this issue 3 years ago • 1 comments

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'

speedym avatar Feb 23 '22 14:02 speedym

For some reason Metal can't open include files even though they are in the package when compiling shaders on iOS.

TheMostDiligent avatar Mar 24 '22 02:03 TheMostDiligent