GPUOpen-LibrariesAndSDKs / RadeonImageFilter

https://gpuopen.com/radeon-prorender-suite/
Other
49 stars 15 forks source link

RIF_IMAGE_FILTER_GAMMA_CORRECTION filter generates an RIF_ERROR_INVALID_FILTER_ARGUMENT_NAME error #4

Closed marceloroca closed 3 years ago

marceloroca commented 3 years ago

I'm trying to use the Gamma Correction (https://radeon-pro.github.io/RadeonProRenderDocs/en/rif/filters/gamma_correction.html)

status = rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_GAMMA_CORRECTION, &filter);
...
status = rifImageFilterSetParameter1f(filter, "cGamma", 0.1f);

When setting the cGamma parameter the status return RIF_ERROR_INVALID_FILTER_ARGUMENT_NAME

rif_trace_1595451945.zip

RIF SDK version: 1.5.3 commit: 0x47b72111 OS: Windows 10 GPU: Radeon RX 5500 XT Driver: 20.5.1

BenjaminCoquelle commented 3 years ago

it is a typo in the documentation on our side we will fix it You need to use "gamma" (rifImageFilterSetParameter1f(filter_, "gamma", gamma)

marceloroca commented 3 years ago

Thanks, is working now