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

Shader compiler #181

Open
Cryptogenic opened this issue Dec 30, 2021 · 7 comments
Open

Shader compiler #181

Cryptogenic opened this issue Dec 30, 2021 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@Cryptogenic
Copy link
Member

Need a shader compiler so we can use more complex shaders. Some homebrew bundle the runtime shader compiler (shacc) from devkits to use complex shaders, but this isn't ideal because we don't want to redistribute sony proprietary libraries.

@Cryptogenic Cryptogenic added the enhancement New feature or request label Dec 30, 2021
@Cryptogenic Cryptogenic added this to the V0.7 milestone Dec 30, 2021
@darkxex
Copy link

darkxex commented Dec 31, 2021

The last update of orbislink I think it uses the console libraries, is it not possible to do the same?Screenshot_20211231-031856.png

@Cryptogenic
Copy link
Member Author

Cryptogenic commented Jan 1, 2022

The last update of orbislink I think it uses the console libraries, is it not possible to do the same?Screenshot_20211231-031856.png

These libraries don't exist on retail firmwares The runtime shader compiler library doesn't exist on retail firmwares, only on devkits. You can pull it from devkit and bundle them with your app to use them, but that's not really 'open' or safe legally. We want to avoid requiring redistribution of sony proprietary code. Piglet exists, but you can only use pre-compiled shaders atm.

@dmiller423
Copy link
Contributor

This is pain, easier to port mesa and use llvm based glsl compiler

@pipehuffer
Copy link

pipehuffer commented Sep 24, 2023

I've ported Mesa's shader compiler to a standalone tool: https://gitgud.io/veiledmerc/psbc
It compiles SPIRV to PSSL's shader binary using ACO.
Most of the source code is an exact copy of Mesa's.
It's incomplete and has some issues though, like no reflection data or vertex and pixel shaders only being supported (so far).

@CrazyVoid
Copy link
Member

@pipehuffer you are more then welcome into our discord if you want to join
https://discord.gg/syc3njG4

the work you are doing is quite amazing and greatly appericated

@CrazyVoid
Copy link
Member

I've ported Mesa's shader compiler to a standalone tool: https://gitgud.io/gluesniffer/psbc It compiles SPIRV to PSSL's shader binary using ACO. Most of the source code is an exact copy of Mesa's. It's incomplete and has some issues though, like no reflection data or vertex and pixel shaders only being supported (so far).

PIPEHUFFER
I wrote some code to help with the freegnm stuff :) https://pastebin.com/5QmtWF5B

@pipehuffer
Copy link

PIPEHUFFER I wrote some code to help with the freegnm stuff :)

Cheers, I'll try to get that code in the examples the next few days.

you are more then welcome into our discord if you want to join

I'm unable to use Discord, do you hang somewhere else?
Also, you can email me at the address in my git commits (the 'ninja' one) if you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants