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

Vulkan Mobile: Renderer not displaying 3D since 4.0.alpha10 #62343

Closed
ViktorEvil opened this issue Jun 23, 2022 · 6 comments
Closed

Vulkan Mobile: Renderer not displaying 3D since 4.0.alpha10 #62343

ViktorEvil opened this issue Jun 23, 2022 · 6 comments

Comments

@ViktorEvil
Copy link
Contributor

Godot version

4.0 alpha 10

System information

MacOS 12.4, Apple Silicon M1

Issue description

Godot 4 alpha 10 fails to display any 3D object in the view port if the Vulkan Mobile renderer is selected.

Alpha 10 Screenshot 2022-06-23 at 11 15 52

Alpha 9 Screenshot 2022-06-23 at 11 14 38

Alpha 10 interface is also extremely laggy and stalls with a beachball until force quit. If I create a project using the Vulkan Desktop renderer the 3D view port displays correctly.

  	VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
  program_source:391:16: warning: unused variable 'sun_scatter'
          float4 sun_scatter = float4(0.0);
                 ^
  program_source:392:15: warning: unused variable 'sun_total'
          float sun_total = 0.0;
                ^
  program_source:1096:11: warning: unused variable 'specular_amount'
      float specular_amount = spot_lights.data[idx].specular_amount;
            ^
  program_source:1171:39: error: no viable overloaded '='
      scene_data.projection_matrix_view = scene_data_block.data.projection_matrix_view;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  program_source:10:8: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'metal::float4x4 const constant[2]' to 'spvUnsafeArray<metal::matrix<float, 4, 4, void>, 2>' for 1st argument
  struct spvUnsafeArray
         ^
  program_source:10:8: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'metal::float4x4 const constant[2]' to 'device spvUnsafeArray<metal::matrix<float, 4, 4, void>, 2> &&' for 1st argument
  struct spvUnsafeArray
         ^

thousands of errors as above using the mobile renderer

Steps to reproduce

create a project in Godot 4 alpha 10 and select the mobile renderer

Minimal reproduction project

test.zip

@ViktorEvil ViktorEvil changed the title Godot 4 Godot 4 Mobile Renderer not displaying 3D Jun 23, 2022
@Calinou Calinou added this to the 4.0 milestone Jun 23, 2022
@Calinou Calinou changed the title Godot 4 Mobile Renderer not displaying 3D Vulkan Mobile: Renderer not displaying 3D since 4.0.alpha10 Jun 23, 2022
@Calinou
Copy link
Member

Calinou commented Jun 23, 2022

Alpha 10 interface is also extremely laggy

This is caused by the large amount of error messages being printed to the editor's Output panel.

@akien-mga
Copy link
Member

Duplicate of #61817? If so it should be fixed in master.

@clayjohn
Copy link
Member

Yeah, Will need confirmation from someone on a Mac, but it indeed looks exactly the same as #61817 (same shader logs as what bruvzg posted. If so, should be fixed by #62305

@lostminds
Copy link

I've been using the mobile renderer for a 3d project on macOS on 4.0.beta2 to beta8 builds and have not seen this problem. So I think this can be closed unless @ViktorEvil is still experiencing these problems?

@akien-mga
Copy link
Member

Thanks, let's close. Please comment if you can still reproduce this issue in the latest beta.

@ViktorEvil
Copy link
Contributor Author

Just tried mobile renderer on beta8 and it’s fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants