Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in LocalCubemapsManualProbes #490

Open
darksylinc opened this issue Dec 31, 2024 · 0 comments
Open

Crash in LocalCubemapsManualProbes #490

darksylinc opened this issue Dec 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Priority: High

Comments

@darksylinc
Copy link
Member

darksylinc commented Dec 31, 2024

System Information

  • Ogre Version: master - 4.0
  • Operating System / Platform: Windows | macOS
  • RenderSystem: D3D11 | Metal
  • GPU: Any

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

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

@darksylinc darksylinc added bug Something isn't working Priority: High labels Dec 31, 2024
@darksylinc darksylinc self-assigned this Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: High
Projects
None yet
Development

No branches or pull requests

1 participant