GPUImage3
GPUImage3 copied to clipboard
Crash when running vignette
Reproduce step:
- Run FilterShowcase example
- Select Vignette filter
Then, app will crash with next exception:
validateFunctionArguments:3485: failed assertion `Fragment Function(vignetteFragment):
argument uniform[0] from buffer(1) with offset(0) and length(40) has space for 40 bytes, but argument has a length(48).'
I have the same problem.
Hi. There is some problem with sending VignetteUniform to the Vignette shader. To quick fix and run sample you can change Vignette.metal file.
typedef struct {
float3 vignetteCenter;
float3 vignetteColor;
float vignetteStart;
float vignetteEnd;
float2 junk_padding; # <-- Add this line
} VignetteUniform;
This should be fixed as of #91