DiligentGraphics / DiligentSamples

Sample projects demonstrating the usage of Diligent Engine
http://diligentgraphics.com/diligent-engine/samples/
Apache License 2.0
320 stars 80 forks source link

VRS tutorial crashes on iOS #89

Open speedym opened 2 years ago

speedym commented 2 years ago

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'

TheMostDiligent commented 2 years ago

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