From 2bbefe7e8d7bd4c020e964f644700525978fb602 Mon Sep 17 00:00:00 2001 From: korenkonder Date: Wed, 26 Jun 2024 12:54:38 +0300 Subject: [PATCH] `Shader`: removed redundant data --- src/CRE/shader_ft.cpp | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/src/CRE/shader_ft.cpp b/src/CRE/shader_ft.cpp index 27e670c9..3def8095 100644 --- a/src/CRE/shader_ft.cpp +++ b/src/CRE/shader_ft.cpp @@ -151,10 +151,6 @@ static const int32_t sss_filter_min_fpt_unival_max[] = { -1, }; -static const int32_t sss_filter_min_npr_vpt_unival_max[] = { - -1, -}; - static const int32_t sss_filter_min_npr_fpt_unival_max[] = { -1, }; @@ -683,7 +679,7 @@ static const int32_t sprite_fpt_unival_max[] = { 3, 3, 2, }; -static const int32_t dof_render_tile_vpt_unival_max[] = { +static const int32_t dof_common_vpt_unival_max[] = { 0, }; @@ -691,34 +687,18 @@ static const int32_t dof_render_tile_fpt_unival_max[] = { 1, }; -static const int32_t dof_gather_tile_vpt_unival_max[] = { - 0, -}; - static const int32_t dof_gather_tile_fpt_unival_max[] = { 0, }; -static const int32_t dof_downsample_vpt_unival_max[] = { - 0, -}; - static const int32_t dof_downsample_fpt_unival_max[] = { 1, }; -static const int32_t dof_main_filter_vpt_unival_max[] = { - 0, -}; - static const int32_t dof_main_filter_fpt_unival_max[] = { 1, }; -static const int32_t dof_upsample_vpt_unival_max[] = { - 0, -}; - static const int32_t dof_upsample_fpt_unival_max[] = { 1, }; @@ -798,7 +778,7 @@ static const shader_sub_table SSS_FILT_table[] = { }, { SHADER_FT_SUB_SSS_FILTER_MIN_NPR, - sss_filter_min_npr_vpt_unival_max, + sss_filter_min_vpt_unival_max, sss_filter_min_npr_fpt_unival_max, "sss_filter_min", "sss_filter_min_npr", @@ -1400,35 +1380,35 @@ static const shader_sub_table SPRITE_table[] = { static const shader_sub_table DOF_table[] = { { SHADER_FT_SUB_DOF_RENDER_TILE, - dof_render_tile_vpt_unival_max, + dof_common_vpt_unival_max, dof_render_tile_fpt_unival_max, "dof_common", "dof_render_tile", }, { SHADER_FT_SUB_DOF_GATHER_TILE, - dof_gather_tile_vpt_unival_max, + dof_common_vpt_unival_max, dof_gather_tile_fpt_unival_max, "dof_common", "dof_gather_tile", }, { SHADER_FT_SUB_DOF_DOWNSAMPLE, - dof_downsample_vpt_unival_max, + dof_common_vpt_unival_max, dof_downsample_fpt_unival_max, "dof_common", "dof_downsample", }, { SHADER_FT_SUB_DOF_MAIN_FILTER, - dof_main_filter_vpt_unival_max, + dof_common_vpt_unival_max, dof_main_filter_fpt_unival_max, "dof_common", "dof_main_filter", }, { SHADER_FT_SUB_DOF_UPSAMPLE, - dof_upsample_vpt_unival_max, + dof_common_vpt_unival_max, dof_upsample_fpt_unival_max, "dof_common", "dof_upsample",