Welcome, Guest.
Username: Password: Remember me

TOPIC: Kuwahara shader errors

Kuwahara shader errors 6 months 1 week ago #1

So I used to have an account on here but forgot my damn password, as my name implies. Made this account just to ask for help with this stupid ass error I'm getting... Probably something dumb I'm doing wrong.

The error is shown here:


The code is shown here:
snip

I'm porting this from unity and everything should work ESPECIALLY the damn DEPTH LINEAR SHIT!!!! what kind of limpdick FUCK is this? can't even reference a depth function from Reshade.fxh GRET FOCKN SHITE! I'm using this in Yuzu (switch emulator, that uses OpenGL 4.5??) this shouldn't break shit that much BECAUSE EVERY OTHER GOD DAMN EFFECT IS WORKING!!! I HAVE BEEN TRYING TO FIGURE OUT WHAT THE FUCK IS WRONG FOR AN HOUR STRAIGHT AND NO SHIT FIX THIS SHIT FUUUUCK

any help greatly appreciated thanks!

EDIT: I should also note I'm using Reshade 4.1.1
EDIT2: Fixed the depth errors and stuff by referencing the namespace they were located in... still get this error:
Last Edit: 6 months 6 days ago by ForgotMyPassword.
The administrator has disabled public write access.

Kuwahara shader errors 6 months 6 days ago #2

ReShade FX does not support struct initializers with the "{ ... }" syntax. (it's reserverd for arrays) You'll have to move that to a function:
Window init_window_0() {
    Window w;
    w.x1 = -Radius;
    w.y1 = -Radius;
    w.x2 = 0;
    w.y2 = 0;
    return w;
}
...
Window W[4] = {
    init_window_0(),
    init_window_1(),
    init_window_2(),
    init_window_3()
};
Or simply use a two-dimensional integer array instead of a struct array.
Cheers, crosire =)
The administrator has disabled public write access.

Kuwahara shader errors 6 months 6 days ago #3

Thanks @Crosire!!! Woke up with a level head and managed to get it working flawlessly, lol.



Decided to ditch the struct crap and use float4s as it's being checked against ints anyways (there's no int4 that I could find). Thanks again!
Last Edit: 6 months 6 days ago by ForgotMyPassword.
The administrator has disabled public write access.