You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a regression introduced in e90ee1b as the generated compute shader to clear it generates RWTextureCube which isn't valid HLSL.
Vulkan may also have validation issues.
Ogre.log
Metal SL Compiler Error in 0ClearUav_cs:
program_source:16:9: error: no matching member function for call to 'write'
dstTex.write( (float4)clearValue, gl_GlobalInvocationID.xyz );
~~~~~~~^~~~~
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7624:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, ushort2 coord, ushort face, ushort lod = 0) const thread METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7638:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, uint2 coord, uint face, uint lod = 0) const thread METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7653:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, ushort2 coord, ushort face, ushort lod = 0) const device METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7667:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, uint2 coord, uint face, uint lod = 0) const device METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7683:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, ushort2 coord, ushort face, ushort lod = 0) const constant METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7697:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, uint2 coord, uint face, uint lod = 0) const constant METAL_VALID_LOD_ARG(lod)
^
Error retrieving entry point 'main_metal' in shader 0ClearUav_cs
High-level program 0ClearUav_cs encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 0ClearUav_cs failed to compile. See compile log above for details. in MetalProgram::compile at /Users/matias/Documents/SDK/Ogre2-Hlms-private/RenderSystems/Metal/src/OgreMetalProgram.mm (line 266)
Metal SL Compiler Error in 0ClearUav_cs:
program_source:16:9: error: no matching member function for call to 'write'
dstTex.write( (float4)clearValue, gl_GlobalInvocationID.xyz );
~~~~~~~^~~~~
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7624:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, ushort2 coord, ushort face, ushort lod = 0) const thread METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7638:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, uint2 coord, uint face, uint lod = 0) const thread METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7653:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, ushort2 coord, ushort face, ushort lod = 0) const device METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7667:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, uint2 coord, uint face, uint lod = 0) const device METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7683:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, ushort2 coord, ushort face, ushort lod = 0) const constant METAL_VALID_LOD_ARG(lod)
^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.723/include/metal/metal_texture:7697:19: note: candidate function not viable: requires at least 3 arguments, but 2 were provided
METAL_FUNC void write(vec<T, 4> color, uint2 coord, uint face, uint lod = 0) const constant METAL_VALID_LOD_ARG(lod)
^
Error retrieving entry point 'main_metal' in shader 0ClearUav_cs
WARNING: GraphicsSystem::deinitialize() not called!!!
An exception has occured: OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 0ClearUav_cs failed to compile. See compile log above for details. in MetalProgram::compile at /Users/matias/Documents/SDK/Ogre2-Hlms-private/RenderSystems/Metal/src/OgreMetalProgram.mm (line 266)
Callstack
The text was updated successfully, but these errors were encountered:
System Information
Detailled description
Trying to run the sample will crash.
This is a regression introduced in e90ee1b as the generated compute shader to clear it generates RWTextureCube which isn't valid HLSL.
Vulkan may also have validation issues.
Ogre.log
Callstack
The text was updated successfully, but these errors were encountered: