From 3b66860a8f8ef7d0e127ae36dfe34db8fd4e10e8 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 18 Dec 2019 06:36:18 +0100 Subject: [PATCH] gfx-blur-gaussian*: Update to new API --- source/gfx/blur/gfx-blur-gaussian-linear.cpp | 4 ++-- source/gfx/blur/gfx-blur-gaussian.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/gfx/blur/gfx-blur-gaussian-linear.cpp b/source/gfx/blur/gfx-blur-gaussian-linear.cpp index 5bf507b1..552a9b59 100644 --- a/source/gfx/blur/gfx-blur-gaussian-linear.cpp +++ b/source/gfx/blur/gfx-blur-gaussian-linear.cpp @@ -320,7 +320,7 @@ std::shared_ptr<::gs::texture> gfx::blur::gaussian_linear::render() effect.get_parameter("pImage").set_texture(_input_texture); effect.get_parameter("pStepScale").set_float2(float_t(_step_scale.first), float_t(_step_scale.second)); effect.get_parameter("pSize").set_float(float_t(_size)); - effect.get_parameter("pKernel").set_float_array(kernel.data(), MAX_KERNEL_SIZE); + effect.get_parameter("pKernel").set_value(kernel.data(), MAX_KERNEL_SIZE); // First Pass if (_step_scale.first > std::numeric_limits::epsilon()) { @@ -415,7 +415,7 @@ std::shared_ptr<::gs::texture> gfx::blur::gaussian_linear_directional::render() .set_float2(float_t(1.f / width * cos(_angle)), float_t(1.f / height * sin(_angle))); effect.get_parameter("pStepScale").set_float2(float_t(_step_scale.first), float_t(_step_scale.second)); effect.get_parameter("pSize").set_float(float_t(_size)); - effect.get_parameter("pKernel").set_float_array(kernel.data(), MAX_KERNEL_SIZE); + effect.get_parameter("pKernel").set_value(kernel.data(), MAX_KERNEL_SIZE); // First Pass { diff --git a/source/gfx/blur/gfx-blur-gaussian.cpp b/source/gfx/blur/gfx-blur-gaussian.cpp index 160dfbe7..a4726fb7 100644 --- a/source/gfx/blur/gfx-blur-gaussian.cpp +++ b/source/gfx/blur/gfx-blur-gaussian.cpp @@ -326,7 +326,7 @@ std::shared_ptr<::gs::texture> gfx::blur::gaussian::render() effect.get_parameter("pImage").set_texture(_input_texture); effect.get_parameter("pStepScale").set_float2(float_t(_step_scale.first), float_t(_step_scale.second)); effect.get_parameter("pSize").set_float(float_t(_size)); - effect.get_parameter("pKernel").set_float_array(kernel.data(), MAX_KERNEL_SIZE); + effect.get_parameter("pKernel").set_value(kernel.data(), MAX_KERNEL_SIZE); // First Pass if (_step_scale.first > std::numeric_limits::epsilon()) { @@ -421,7 +421,7 @@ std::shared_ptr<::gs::texture> gfx::blur::gaussian_directional::render() .set_float2(float_t(1.f / width * cos(m_angle)), float_t(1.f / height * sin(m_angle))); effect.get_parameter("pStepScale").set_float2(float_t(_step_scale.first), float_t(_step_scale.second)); effect.get_parameter("pSize").set_float(float_t(_size)); - effect.get_parameter("pKernel").set_float_array(kernel.data(), MAX_KERNEL_SIZE); + effect.get_parameter("pKernel").set_value(kernel.data(), MAX_KERNEL_SIZE); // First Pass { @@ -476,7 +476,7 @@ std::shared_ptr<::gs::texture> gfx::blur::gaussian_rotational::render() effect.get_parameter("pSize").set_float(float_t(_size)); effect.get_parameter("pAngle").set_float(float_t(m_angle / _size)); effect.get_parameter("pCenter").set_float2(float_t(m_center.first), float_t(m_center.second)); - effect.get_parameter("pKernel").set_float_array(kernel.data(), MAX_KERNEL_SIZE); + effect.get_parameter("pKernel").set_value(kernel.data(), MAX_KERNEL_SIZE); // First Pass { @@ -552,7 +552,7 @@ std::shared_ptr<::gs::texture> gfx::blur::gaussian_zoom::render() effect.get_parameter("pStepScale").set_float2(float_t(_step_scale.first), float_t(_step_scale.second)); effect.get_parameter("pSize").set_float(float_t(_size)); effect.get_parameter("pCenter").set_float2(float_t(m_center.first), float_t(m_center.second)); - effect.get_parameter("pKernel").set_float_array(kernel.data(), MAX_KERNEL_SIZE); + effect.get_parameter("pKernel").set_value(kernel.data(), MAX_KERNEL_SIZE); // First Pass {