mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-24 12:25:11 +00:00
gfx-blur-gaussian*: Update to new API
This commit is contained in:
parent
c0f131642b
commit
3b66860a8f
2 changed files with 6 additions and 6 deletions
|
@ -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<double_t>::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
|
||||
{
|
||||
|
|
|
@ -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<double_t>::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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue