Advertising (This ad goes away for registered users. You can Login or Register)

Invalid gxp shader

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
MrSilverstone
Posts: 11
Joined: Mon Jun 29, 2015 7:35 pm

Invalid gxp shader

Post by MrSilverstone » Thu Aug 18, 2016 8:56 am

Hi everyone.
I managed to display basic shapes using gxm thanks to libvita2d compiled shaders found on github. Now, I would like to use my own shaders. I found a tool (not legal) which let me compile my cg shaders to gxp. Unfortunately, when i try to use them, sceGxmProgramCheck return SCE_GXM_ERROR_INVALID_VALUE (0x805b0003).
How did xerpi manage to compile his shaders? Is there any non official but legal tool for compiling shaders?
I know that my gxp file is valid (i can check uniforms information with an other tool).
I tried to convert the gxp file to obj with ld (arm-vita-eabi-ld -r -b binary) and it didn't work. Same result using xxd to convert the gxp file to an unsigned char array.

Thanks for your help, and sorry for my english ;)
Advertising

MrSilverstone
Posts: 11
Joined: Mon Jun 29, 2015 7:35 pm

Re: Invalid gxp shader

Post by MrSilverstone » Thu Aug 18, 2016 11:00 pm

I just found that vitashell used to be able to compile shaders. I found some code in this commit : https://bitbucket.org/TheOfficialFloW/v ... 770872a9c9
I found other informations on this repo https://github.com/frangarcj/vitahelloshader
Advertising

xyz
Posts: 61
Joined: Thu Jan 20, 2011 7:06 pm

Re: Invalid gxp shader

Post by xyz » Thu Aug 18, 2016 11:08 pm


MrSilverstone
Posts: 11
Joined: Mon Jun 29, 2015 7:35 pm

Re: Invalid gxp shader

Post by MrSilverstone » Fri Aug 19, 2016 12:45 am

Thank you sir!

Post Reply

Return to “Programming and Security”