-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Labels
MetalIssue affects Metal specifically. Don't use this tag if all RenderSystems are affectedIssue affects Metal specifically. Don't use this tag if all RenderSystems are affectedPriority: NormalbugSomething isn't workingSomething isn't working
Description
System Information
- Ogre Version: master branch, commit b05d342
- Operating System / Platform: macOS 13.7.6
- RenderSystem: Metal
- GPU: AMD Radeon Pro 560X
Detailed description
In some cases when I use an unlit datablock with a texture and alpha testing, I get an exception on compiling a pixel shader. To reproduce, start with the Sample_PbsMaterials sample program, and replace the PbsMaterialsGameState.cpp file with the attached modified version.
Here is the shader that fails to compile.
300000014PixelShader_ps.metal.zip
Ogre.log
13:25:09: Creating resource group General
13:25:09: Creating resource group Internal
13:25:09: Creating resource group Autodetect
13:25:09: SceneManagerFactory for type 'DefaultSceneManager' registered.
13:25:09: Registering ResourceManager for type Material
13:25:09: Registering ResourceManager for type Mesh
13:25:09: Registering ResourceManager for type Mesh2
13:25:09: Registering ResourceManager for type OldSkeleton
13:25:09: MovableObjectFactory for type 'ParticleSystem' registered.
13:25:09: ArchiveFactory for archive type FileSystem registered.
13:25:09: ArchiveFactory for archive type Zip registered.
13:25:09: ArchiveFactory for archive type EmbeddedZip registered.
13:25:09: DDS codec registering
13:25:09: FreeImage version: 3.18.0
13:25:09: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
13:25:09: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,psb,cut,xbm,xpm,gif,hdr,g3,sgi,rgb,rgba,bw,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti,x3f,webp,jxr,wdp,hdp
13:25:09: OITD codec registering
13:25:09: Registering ResourceManager for type HighLevelGpuProgram
13:25:09: WARNING: NS Bundle Identifier not set!
13:25:09: WARNING: NS Bundle Identifier not set!
13:25:09: MovableObjectFactory for type 'Decal' registered.
13:25:09: MovableObjectFactory for type 'InternalCubemapProbe' registered.
13:25:09: MovableObjectFactory for type 'Entity' registered.
13:25:09: MovableObjectFactory for type 'Item' registered.
13:25:09: MovableObjectFactory for type 'Light' registered.
13:25:09: MovableObjectFactory for type 'ParticleSystem2' registered.
13:25:09: MovableObjectFactory for type 'Rectangle2Dv2' registered.
13:25:09: MovableObjectFactory for type 'BillboardSet' registered.
13:25:09: MovableObjectFactory for type 'ManualObject2' registered.
13:25:09: MovableObjectFactory for type 'BillboardChain' registered.
13:25:09: MovableObjectFactory for type 'RibbonTrail' registered.
13:25:09: MovableObjectFactory for type 'WireAabb' registered.
13:25:09: Loading library RenderSystem_Metal
13:25:09: Installing plugin: Metal RenderSystem
13:25:09: Metal: Devices Detection Starts
13:25:09: Metal: "AMD Radeon Pro 560X"
13:25:09: Metal: "Intel(R) UHD Graphics 630"
13:25:09: Metal: Devices Detection Ends
13:25:09: Plugin successfully installed
13:25:09: Loading library Plugin_ParticleFX
13:25:09: Installing plugin: ParticleFX
13:25:09: Particle Emitter Type 'Point' registered
13:25:09: Particle Emitter Type 'Box' registered
13:25:09: Particle Emitter Type 'Ellipsoid' registered
13:25:09: Particle Emitter Type 'Cylinder' registered
13:25:09: Particle Emitter Type 'Ring' registered
13:25:09: Particle Emitter Type 'HollowEllipsoid' registered
13:25:09: Particle Affector Type 'LinearForce' registered
13:25:09: Particle Affector Type 'ColourFader' registered
13:25:09: Particle Affector Type 'ColourFader2' registered
13:25:09: Particle Affector Type 'ColourImage' registered
13:25:09: Particle Affector Type 'ColourInterpolator' registered
13:25:09: Particle Affector Type 'ScaleInterpolator' registered
13:25:09: Particle Affector Type 'Scaler' registered
13:25:09: Particle Affector Type 'Rotator' registered
13:25:09: Particle Affector Type 'DirectionRandomiser' registered
13:25:09: Particle Affector Type 'DeflectorPlane' registered
13:25:09: Plugin successfully installed
13:25:09: Loading library Plugin_ParticleFX2
13:25:09: Installing plugin: ParticleFX2
13:25:09: Plugin successfully installed
13:25:09: *-*-* OGRE Initialising
13:25:09: *-*-* Version 4.0.0unstable (F)
13:25:11: CPU Identifier & Features
13:25:11: -------------------------
13:25:11: * CPU ID: GenuineIntel: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
13:25:11: * Logical cores: 12
13:25:11: * SSE: yes
13:25:11: * SSE2: yes
13:25:11: * SSE3: yes
13:25:11: * MMX: yes
13:25:11: * MMXEXT: yes
13:25:11: * 3DNOW: no
13:25:11: * 3DNOWEXT: no
13:25:11: * CMOV: yes
13:25:11: * TSC: yes
13:25:11: * FPU: yes
13:25:11: * PRO: yes
13:25:11: * HT: no
13:25:11: -------------------------
13:25:11: Metal: Devices Detection Starts
13:25:11: Metal: "AMD Radeon Pro 560X"
13:25:11: Metal: "Intel(R) UHD Graphics 630"
13:25:11: Metal: Devices Detection Ends
13:25:11: Metal: Requested "AMD Radeon Pro 560X", selected "AMD Radeon Pro 560X"
13:25:11: Supports: OSX_GPUFamily1_v1
13:25:11: Registering ResourceManager for type GpuProgram
13:25:11: Device is NOT tiler. TilerMemoryless flag will be ignored.
13:25:11: DefaultWorkQueue('Root') initialising on thread main.
13:25:11: Particle Renderer Type 'billboard' registered
13:25:11: OverlayElementFactory for type Panel registered.
13:25:11: OverlayElementFactory for type BorderPanel registered.
13:25:11: OverlayElementFactory for type TextArea registered.
13:25:11: Registering ResourceManager for type Font
13:25:11: Creating resource group Essential
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/DebugPack.zip' of type 'Zip' to resource group 'Essential'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/CornellBox.zip' of type 'Zip' to resource group 'Essential'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/materials/Common' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/materials/Common/Any' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/materials/Common/GLSL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/materials/Common/HLSL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/materials/Common/Metal' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Hlms/Common/Any' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Hlms/Common/GLSL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Hlms/Common/HLSL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Hlms/Common/Metal' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Compute/Algorithms/IBL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Compute/Tools/Any' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Compute/Tools/GLSL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Compute/Tools/HLSL' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Compute/Tools/Metal' of type 'FileSystem' to resource group 'General'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/Compute/Tools' of type 'FileSystem' to resource group 'General'
13:25:11: Creating resource group Popular
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/Compositors' of type 'FileSystem' to resource group 'Popular'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/models' of type 'FileSystem' to resource group 'Popular'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/textures' of type 'FileSystem' to resource group 'Popular'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/textures/Cubemaps' of type 'FileSystem' to resource group 'Popular'
13:25:11: Added resource location '/Volumes/Work/non-repo-libraries/Ogre-fork-build7/bin/Debug/Sample_PbsMaterials.app/Contents/Resources/2.0/scripts/materials/PbsMaterials' of type 'FileSystem' to resource group 'General'
13:25:11: WARNING: NS Bundle Identifier not set!
13:25:11: WARNING: NS Bundle Identifier not set!
13:25:11: Loading HlmsDiskCache from hlmsDiskCache1.bin
13:25:11: Applying HlmsDiskCache 1
13:25:11: Shader 100000000VertexShader_vs compiled successfully.
13:25:11: Shader 100000001VertexShader_vs compiled successfully.
13:25:11: Shader 100000002VertexShader_vs compiled successfully.
13:25:11: Shader 100000002PixelShader_ps compiled successfully.
13:25:11: Shader 100000003VertexShader_vs compiled successfully.
13:25:11: Shader 100000003PixelShader_ps compiled successfully.
13:25:11: Shader 100000004VertexShader_vs compiled successfully.
13:25:11: Shader 100000004PixelShader_ps compiled successfully.
13:25:11: Shader 100000005VertexShader_vs compiled successfully.
13:25:11: Shader 100000005PixelShader_ps compiled successfully.
13:25:11: Shader 100000006VertexShader_vs compiled successfully.
13:25:11: Shader 100000006PixelShader_ps compiled successfully.
13:25:11: Shader 100000007VertexShader_vs compiled successfully.
13:25:11: Shader 100000007PixelShader_ps compiled successfully.
13:25:11: Shader 100000008VertexShader_vs compiled successfully.
13:25:11: Shader 100000008PixelShader_ps compiled successfully.
13:25:11: Shader 100000009VertexShader_vs compiled successfully.
13:25:11: Shader 100000009PixelShader_ps compiled successfully.
13:25:11: Shader 100000010VertexShader_vs compiled successfully.
13:25:11: Shader 100000010PixelShader_ps compiled successfully.
13:25:11: Shader 100000011VertexShader_vs compiled successfully.
13:25:11: Shader 100000011PixelShader_ps compiled successfully.
13:25:11: Shader 100000012VertexShader_vs compiled successfully.
13:25:11: Shader 100000012PixelShader_ps compiled successfully.
13:25:11: Shader 100000013VertexShader_vs compiled successfully.
13:25:11: Shader 100000013PixelShader_ps compiled successfully.
13:25:11: Shader 100000014VertexShader_vs compiled successfully.
13:25:11: Shader 100000014PixelShader_ps compiled successfully.
13:25:11: Shader 100000015VertexShader_vs compiled successfully.
13:25:11: Shader 100000015PixelShader_ps compiled successfully.
13:25:11: Shader 100000016VertexShader_vs compiled successfully.
13:25:11: Shader 100000016PixelShader_ps compiled successfully.
13:25:11: Shader 100000017VertexShader_vs compiled successfully.
13:25:11: Shader 100000017PixelShader_ps compiled successfully.
13:25:11: Shader 100000018VertexShader_vs compiled successfully.
13:25:11: Shader 100000018PixelShader_ps compiled successfully.
13:25:11: Shader 100000019VertexShader_vs compiled successfully.
13:25:11: Shader 100000019PixelShader_ps compiled successfully.
13:25:11: Shader 100000020VertexShader_vs compiled successfully.
13:25:11: Shader 100000020PixelShader_ps compiled successfully.
13:25:11: Shader 100000021VertexShader_vs compiled successfully.
13:25:11: Shader 100000021PixelShader_ps compiled successfully.
13:25:11: Shader 100000022VertexShader_vs compiled successfully.
13:25:11: Shader 100000022PixelShader_ps compiled successfully.
13:25:11: Shader 100000023VertexShader_vs compiled successfully.
13:25:11: Shader 100000023PixelShader_ps compiled successfully.
13:25:11: Shader 100000024VertexShader_vs compiled successfully.
13:25:11: Shader 100000024PixelShader_ps compiled successfully.
13:25:11: Shader 100000025VertexShader_vs compiled successfully.
13:25:11: Shader 100000025PixelShader_ps compiled successfully.
13:25:11: Shader 100000026VertexShader_vs compiled successfully.
13:25:11: Shader 100000026PixelShader_ps compiled successfully.
13:25:11: Shader 100000027VertexShader_vs compiled successfully.
13:25:11: Shader 100000027PixelShader_ps compiled successfully.
13:25:11: Shader 100000028VertexShader_vs compiled successfully.
13:25:11: Shader 100000028PixelShader_ps compiled successfully.
13:25:11: Shader 100000029VertexShader_vs compiled successfully.
13:25:11: Shader 100000029PixelShader_ps compiled successfully.
13:25:11: Shader 100000030VertexShader_vs compiled successfully.
13:25:11: Shader 100000030PixelShader_ps compiled successfully.
13:25:11: Shader 100000031VertexShader_vs compiled successfully.
13:25:11: Shader 100000031PixelShader_ps compiled successfully.
13:25:11: Shader 100000032VertexShader_vs compiled successfully.
13:25:11: Shader 100000032PixelShader_ps compiled successfully.
13:25:11: Shader 100000033VertexShader_vs compiled successfully.
13:25:11: Shader 100000033PixelShader_ps compiled successfully.
13:25:11: Shader 100000034VertexShader_vs compiled successfully.
13:25:11: Shader 100000034PixelShader_ps compiled successfully.
13:25:11: Shader 100000035VertexShader_vs compiled successfully.
13:25:11: Shader 100000035PixelShader_ps compiled successfully.
13:25:11: Shader 100000036VertexShader_vs compiled successfully.
13:25:11: Shader 100000036PixelShader_ps compiled successfully.
13:25:11: Loading HlmsDiskCache from hlmsDiskCache3.bin
13:25:11: Applying HlmsDiskCache 3
13:25:11: Shader 300000000VertexShader_vs compiled successfully.
13:25:11: Shader 300000000PixelShader_ps compiled successfully.
13:25:11: Shader 300000001VertexShader_vs compiled successfully.
13:25:11: Shader 300000001PixelShader_ps compiled successfully.
13:25:11: Shader 300000002VertexShader_vs compiled successfully.
13:25:11: Shader 300000002PixelShader_ps compiled successfully.
13:25:11: Shader 300000003VertexShader_vs compiled successfully.
13:25:11: Shader 300000003PixelShader_ps compiled successfully.
13:25:11: Shader 300000004VertexShader_vs compiled successfully.
13:25:11: Shader 300000004PixelShader_ps compiled successfully.
13:25:11: Shader 300000005VertexShader_vs compiled successfully.
13:25:11: Shader 300000005PixelShader_ps compiled successfully.
13:25:11: Shader 300000006VertexShader_vs compiled successfully.
13:25:11: Shader 300000006PixelShader_ps compiled successfully.
13:25:11: Shader 300000007VertexShader_vs compiled successfully.
13:25:11: Shader 300000007PixelShader_ps compiled successfully.
13:25:11: Shader 300000008VertexShader_vs compiled successfully.
13:25:11: Shader 300000008PixelShader_ps compiled successfully.
13:25:11: Shader 300000009VertexShader_vs compiled successfully.
13:25:11: Shader 300000009PixelShader_ps compiled successfully.
13:25:11: Shader 300000010VertexShader_vs compiled successfully.
13:25:11: Shader 300000010PixelShader_ps compiled successfully.
13:25:11: Shader 300000011VertexShader_vs compiled successfully.
13:25:11: Shader 300000011PixelShader_ps compiled successfully.
13:25:11: Shader 300000012VertexShader_vs compiled successfully.
13:25:11: Shader 300000013VertexShader_vs compiled successfully.
13:25:11: Parsing scripts for resource group Autodetect
13:25:11: Finished parsing scripts for resource group Autodetect
13:25:11: Creating resources for group Autodetect
13:25:11: All done
13:25:11: Parsing scripts for resource group Essential
13:25:11: Parsing script Materials.material
13:25:11: Parsing script CornellBox.material.json
13:25:11: Parsing script DebugFont.fontdef
13:25:11: Finished parsing scripts for resource group Essential
13:25:11: Creating resources for group Essential
13:25:11: All done
13:25:11: Parsing scripts for resource group General
13:25:11: Parsing script Quad.program
13:25:11: Shader Ogre/Compositor/Quad_vs_Metal compiled successfully.
13:25:11: Shader Ogre/Compositor/QuadCameraDir_vs_Metal compiled successfully.
13:25:11: Shader Ogre/Compositor/QuadCameraDirNoUV_vs_Metal compiled successfully.
13:25:11: Parsing script HiddenAreaMeshVr.material
13:25:11: Shader Ogre/VR/HiddenAreaMeshVr_vs_Metal compiled successfully.
13:25:11: Shader Ogre/VR/HiddenAreaMeshVr_ps_Metal compiled successfully.
13:25:11: Parsing script EsmGaussianBlurLogFilter.material
13:25:11: Shader ESM/GaussianLogFilterH_ps_Metal compiled successfully.
13:25:11: Shader ESM/GaussianLogFilterV_ps_Metal compiled successfully.
13:25:11: Parsing script RadialDensityMask.material
13:25:11: Shader Ogre/Compositor/RadialDensityMask_vs_Metal compiled successfully.
13:25:11: Shader Ogre/VR/RadialDensityMask_ps_Metal compiled successfully.
13:25:11: Parsing script DPSM.material
13:25:11: Shader Ogre/DPSM/CubeToDpsm_ps_Metal compiled successfully.
13:25:11: Shader Ogre/DPSM/CubeToDpsm_Colour_ps_Metal compiled successfully.
13:25:11: Parsing script Atmosphere.material
13:25:11: Shader Ogre/Atmo/NprSky_ps_Metal compiled successfully.
13:25:11: Parsing script DPM.material
13:25:11: Shader Ogre/DPM/CubeToDpm_4xFP16_ps_Metal compiled successfully.
13:25:11: Parsing script PccDepthCompressor.material
13:25:11: Shader PccDepthCompressor_ps_Metal compiled successfully.
13:25:11: Parsing script DepthUtils.material
13:25:11: Shader Ogre/Depth/DownscaleMax_ps_Metal compiled successfully.
13:25:11: Shader Ogre/Depth/DownscaleMax_Subsample0_ps_Metal compiled successfully.
13:25:11: Parsing script Sky.material
13:25:11: Shader Ogre/Sky/Cubemap_ps_Metal compiled successfully.
13:25:11: Shader Ogre/Sky/Equirectangular_ps_Metal compiled successfully.
13:25:11: Parsing script Copyback.material
13:25:11: Shader Ogre/Copy/4xFP32_ps_Metal compiled successfully.
13:25:11: Shader Ogre/Copy/4xFP32_2DArray_ps_Metal compiled successfully.
13:25:11: Shader Ogre/Copy/1xFP32_ps_Metal compiled successfully.
13:25:11: Shader Ogre/Resolve/1xFP32_Subsample0_ps_Metal compiled successfully.
13:25:11: Parsing script PbsMaterials.material
13:25:11: Parsing script EsmGaussianBlurLogFilter.material.json
13:25:11: Parsing script Mipmaps.material.json
13:25:11: Parsing script IBL.material.json
13:25:11: Parsing script ClearUav.material.json
13:25:11: Finished parsing scripts for resource group General
13:25:11: Creating resources for group General
13:25:11: All done
13:25:11: Parsing scripts for resource group Internal
13:25:11: Finished parsing scripts for resource group Internal
13:25:11: Creating resources for group Internal
13:25:11: All done
13:25:11: Parsing scripts for resource group Popular
13:25:11: Parsing script LocalCubemaps.compositor
13:25:11: Parsing script StencilTest.compositor
13:25:11: Parsing script TutorialUav02_Setup.compositor
13:25:11: Parsing script StereoRendering.compositor
13:25:11: Parsing script ScreenSpaceReflections.compositor
13:25:11: Parsing script StaticShadowMaps.compositor
13:25:11: Parsing script UvBaking.compositor
13:25:11: Parsing script ShadowMapDebugging.compositor
13:25:11: Parsing script Refractions.compositor
13:25:11: Parsing script Tutorial_DynamicCubemap.compositor
13:25:11: Parsing script IrradianceFieldRaster.compositor
13:25:11: Parsing script PbsMaterials.compositor
13:25:11: Parsing script Tutorial_Terrain.compositor
13:25:11: Parsing script InstancedStereo.compositor
13:25:11: Parsing script Tutorial_OpenVRWorkspace.compositor
13:25:11: Parsing script TutorialUav01_Setup.compositor
13:25:11: Parsing script TutorialSky_Postprocess.compositor
13:25:11: Parsing script Tutorial_ReconstructPosFromDepth.compositor
13:25:11: Parsing script PlanarReflections.compositor
13:25:11: Finished parsing scripts for resource group Popular
13:25:11: Creating resources for group Popular
13:25:11: All done
13:25:11: Mesh: Loading Sphere1000.mesh.
13:25:11: WARNING: Sphere1000.mesh is an older format ([MeshSerializer_v2.1 R1]); you should upgrade it as soon as possible using the OgreMeshTool tool.
13:25:11: Mesh: Loading Cube_d.mesh.
13:25:11: WARNING: Cube_d.mesh is an older format ([MeshSerializer_v2.1 R1]); you should upgrade it as soon as possible using the OgreMeshTool tool.
13:25:11: Shader 300000014VertexShader_vs compiled successfully.
13:25:11: Metal SL Compiler Error in 300000014PixelShader_ps:
program_source:347:1: error: control reaches end of non-void fragment function
}
^
13:25:11: Error retrieving entry point 'main_metal' in shader 300000014PixelShader_ps
13:25:11: OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 300000014PixelShader_ps failed to compile. See compile log above for details. in MetalProgram::compile at /Volumes/Work/git-repos/ogre-next-fork/RenderSystems/Metal/src/OgreMetalProgram.mm (line 266)
Callstack
#1 0x000000010d3e52c4 in Ogre::ExceptionFactory::throwException(Ogre::Exception::ExceptionCodes, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, char const*, long) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/include/OgreException.h:299
#2 0x000000010d401a4a in Ogre::MetalProgram::compile(bool) at /Volumes/Work/git-repos/ogre-next-fork/RenderSystems/Metal/src/OgreMetalProgram.mm:263
#3 0x000000010d40098a in Ogre::MetalProgram::loadFromSource() at /Volumes/Work/git-repos/ogre-next-fork/RenderSystems/Metal/src/OgreMetalProgram.mm:101
#4 0x000000010909d6ad in Ogre::HighLevelGpuProgram::loadHighLevelImpl() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHighLevelGpuProgram.cpp:341
#5 0x000000010909ca84 in Ogre::HighLevelGpuProgram::loadHighLevel() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHighLevelGpuProgram.cpp:184
#6 0x000000010909c627 in Ogre::HighLevelGpuProgram::loadImpl() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHighLevelGpuProgram.cpp:113
#7 0x0000000109333e0e in Ogre::Resource::load(bool) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreResource.cpp:242
#8 0x00000001090afd62 in Ogre::Hlms::compileShaderCode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int, Ogre::ShaderType, unsigned long) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHlms.cpp:2486
#9 0x00000001090b1fa6 in Ogre::Hlms::compileShaderCode(Ogre::Hlms::ShaderCodeCache&, unsigned int, unsigned long) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHlms.cpp:2698
#10 0x00000001090b2ea0 in Ogre::Hlms::createShaderCacheEntry(unsigned int, Ogre::HlmsCache const&, unsigned int, Ogre::QueuedRenderable const&, Ogre::HlmsCache*, unsigned long long, unsigned long) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHlms.cpp:2807
#11 0x00000001037d651a in Ogre::HlmsUnlit::createShaderCacheEntry(unsigned int, Ogre::HlmsCache const&, unsigned int, Ogre::QueuedRenderable const&, Ogre::HlmsCache*, unsigned long long, unsigned long) at /Volumes/Work/git-repos/ogre-next-fork/Components/Hlms/Unlit/src/OgreHlmsUnlit.cpp:216
#12 0x00000001090bad59 in Ogre::Hlms::getMaterial(Ogre::HlmsCache const*, Ogre::HlmsCache const&, Ogre::QueuedRenderable const&, bool, Ogre::ParallelHlmsCompileQueue*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreHlms.cpp:3928
#13 0x00000001092f75a3 in Ogre::RenderQueue::renderGL3(Ogre::RenderSystem*, bool, bool, Ogre::HlmsCache*, Ogre::RenderQueue::RenderQueueGroup const&, Ogre::ParallelHlmsCompileQueue*, Ogre::IndirectBufferPacked*, unsigned char*, unsigned char*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreRenderQueue.cpp:886
#14 0x00000001092f5a37 in Ogre::RenderQueue::render(Ogre::RenderSystem*, unsigned char, unsigned char, bool, bool) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreRenderQueue.cpp:498
#15 0x00000001093a3251 in Ogre::SceneManager::_renderPhase02(Ogre::Camera*, Ogre::Camera const*, unsigned char, unsigned char, bool) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreSceneManager.cpp:1561
#16 0x0000000108f95a84 in Ogre::Camera::_renderScenePhase02(Ogre::Camera const*, unsigned char, unsigned char, bool) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreCamera.cpp:386
#17 0x000000010955dff3 in Ogre::Viewport::_updateRenderPhase02(Ogre::Camera*, Ogre::Camera const*, unsigned char, unsigned char) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreViewport.cpp:206
#18 0x0000000108f177e3 in Ogre::CompositorPassScene::execute(Ogre::Camera const*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/Pass/PassScene/OgreCompositorPassScene.cpp:313
#19 0x0000000108eae747 in Ogre::CompositorNode::_update(Ogre::Camera const*, Ogre::SceneManager*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/OgreCompositorNode.cpp:833
#20 0x0000000108ebda07 in Ogre::CompositorShadowNode::_update(Ogre::Camera*, Ogre::Camera const*, Ogre::SceneManager*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/OgreCompositorShadowNode.cpp:646
#21 0x0000000108f1749f in Ogre::CompositorPassScene::execute(Ogre::Camera const*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/Pass/PassScene/OgreCompositorPassScene.cpp:256
#22 0x0000000108eae747 in Ogre::CompositorNode::_update(Ogre::Camera const*, Ogre::SceneManager*) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/OgreCompositorNode.cpp:833
#23 0x0000000108edc47a in Ogre::CompositorWorkspace::_update(bool) at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/OgreCompositorWorkspace.cpp:906
#24 0x0000000108e8fb17 in Ogre::CompositorManager2::_updateImplementation() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/OgreCompositorManager2.cpp:790
#25 0x000000010d423d32 in Ogre::MetalRenderSystem::updateCompositorManager(Ogre::CompositorManager2*) at /Volumes/Work/git-repos/ogre-next-fork/RenderSystems/Metal/src/OgreMetalRenderSystem.mm:2789
#26 0x0000000108e8f760 in Ogre::CompositorManager2::_update() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/Compositor/OgreCompositorManager2.cpp:712
#27 0x000000010937a840 in Ogre::Root::_updateAllRenderTargets() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreRoot.cpp:1579
#28 0x000000010937a6f8 in Ogre::Root::renderOneFrame() at /Volumes/Work/git-repos/ogre-next-fork/OgreMain/src/OgreRoot.cpp:1113
#29 0x000000010337f2f6 in Demo::GraphicsSystem::update(float) at /Volumes/Work/git-repos/ogre-next-fork/Samples/2.0/Common/src/GraphicsSystem.cpp:430
#30 0x00000001033948e4 in Demo::MainEntryPoints::mainAppSingleThreaded(int, char const**) at /Volumes/Work/git-repos/ogre-next-fork/Samples/2.0/Common/src/System/Desktop/MainLoopSingleThreaded.cpp:135
#31 0x0000000103366a3b in mainApp(int, char const**) at /Volumes/Work/git-repos/ogre-next-fork/Samples/2.0/Showcase/PbsMaterials/PbsMaterials.cpp:25
#32 0x0000000103366939 in main at /Volumes/Work/git-repos/ogre-next-fork/Samples/2.0/Common/include/MainEntryPointHelper.h:40
Metadata
Metadata
Assignees
Labels
MetalIssue affects Metal specifically. Don't use this tag if all RenderSystems are affectedIssue affects Metal specifically. Don't use this tag if all RenderSystems are affectedPriority: NormalbugSomething isn't workingSomething isn't working