-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Investigate d3d12 vs. metal alignment/padding differences in sysgpu #1217
Comments
I was testing this again and core-sysgpu-textured-quad only shows the warning and does not crash. But sprite2d is still crashing. One thing with the sprite2d example is that is tries to load the sprite sheet from ../../examples/sprite2d/sprites.json but the file is actually under ../../src/core/examples/sysgpu/sprite2d/sprites.json. Not sure if the path should be changed or the sample file moved. I guess this is because of project reorganization. I have the Debug layer now enabled. The output I get from that is: |
The sprite2d example works if the spriteIndex is changed from a f32 to vec3. But it does not solve the underlying problem. I also tested examples/sprite which uses mach.gfx.sprite_modules. That does not crash but the sprite does not show properly.
|
I found out why the mach.Core sprite example is not working on sysgpu / d3d12.
|
additional context
|
Running textured-quad, sprite2d sysgpu examples on Windows / D3D12 fails.
If I change the shader return to
return VertexOutput(vec4(position, 0.0, 1.0), uv);
I get:
The text was updated successfully, but these errors were encountered: