I am not sure if this is a hardware limitation (I am testing on an M1 Macbook Pro laptop) or an actual issue. The error I get when trying to run the image voxelizer sample is:
Code: Select all
Mesh: Loading tudorhouse.mesh.
WARNING: tudorhouse.mesh is an older format ([MeshSerializer_v1.8]); you should upgrade it as soon as possible using the OgreMeshTool tool.
Can't assign material 1 - Default because this Material does not exist. Have you forgotten to define it in a .material script?
Shader 0AabbCalcultor_cs compiled successfully.
Shader 1AabbWorldSpace_cs compiled successfully.
Shader 2ClearUav_cs compiled successfully.
Shader 3ClearUav_cs compiled successfully.
Shader 4Voxelizer_cs compiled successfully.
Shader 5Voxelizer_cs compiled successfully.
Shader 10ImageVoxelizer_cs compiled successfully.
Shader 12LightInjection_cs compiled successfully.
Shader 13AnisotropicMipVctStep0_cs compiled successfully.
Shader 14AnisotropicMipVctStep1_cs compiled successfully.
Shader 19LightVctBounceInject_cs compiled successfully.
Compiler failed to build request
Metal SL Compiler Error in 26LightVctBounceInject_cs:
program_source:473:34: error: cannot reserve 'texture' resource location at index 8
texture3d<float, access::write> lightVoxel [[texture(UAV_SLOT_START+0)]],
^
Error retrieving entry point 'main_metal' in shader 26LightVctBounceInject_cs
High-level program 26LightVctBounceInject_cs encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 26LightVctBounceInject_cs failed to compile. See compile log above for details. in MetalProgram::compile at /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/RenderSystems/Metal/src/OgreMetalProgram.mm (line 266)
Compiler failed to build request
Metal SL Compiler Error in 26LightVctBounceInject_cs:
program_source:473:34: error: cannot reserve 'texture' resource location at index 8
texture3d<float, access::write> lightVoxel [[texture(UAV_SLOT_START+0)]],
^
Error retrieving entry point 'main_metal' in shader 26LightVctBounceInject_cs
WARNING: GraphicsSystem::deinitialize() not called!!!
An exception has occured: OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 26LightVctBounceInject_cs failed to compile. See compile log above for details. in MetalProgram::compile at /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/RenderSystems/Metal/src/OgreMetalProgram.mm (line 266)
Program ended with exit code: 255
Should I file this as a bug?