From 4fd04072726039b9300e00c780cab86691daa94c Mon Sep 17 00:00:00 2001 From: hooke007 Date: Fri, 12 Jul 2024 23:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9D=80=E8=89=B2=E5=99=A8=EF=BC=9A=20?= =?UTF-8?q?=E7=BB=99Ani=E7=B3=BB=E7=9D=80=E8=89=B2=E5=99=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=BF=85=E8=A6=81=E7=9A=84=E6=9C=80=E4=BD=8E=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=80=8D=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shaders/Ani4Kv2_ArtCNN_C4F32_i2.glsl | 100 +++++++++--------- .../shaders/Ani4Kv2_ArtCNN_C4F32_i2_CMP.glsl | 8 ++ .../shaders/AniSD_ArtCNN_C4F32_i4.glsl | 100 +++++++++--------- .../shaders/AniSD_ArtCNN_C4F32_i4_CMP.glsl | 8 ++ 4 files changed, 116 insertions(+), 100 deletions(-) diff --git a/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2.glsl b/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2.glsl index cdb1c8bf..ad1fcef2 100644 --- a/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2.glsl +++ b/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2.glsl @@ -30,7 +30,7 @@ //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.013557938, 0.0047282414, -0.0055004754, 0.0074933744); @@ -53,7 +53,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.00606217, 0.0028236886, -0.014054051, 0.0037515557); @@ -76,7 +76,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0015426857, -0.0056094904, 0.0174101, 0.01143031); @@ -99,7 +99,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0020699732, 0.010311046, -0.0122236535, -0.0057681506); @@ -122,7 +122,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0054853344, -0.004406003, -0.0023702087, -0.0021772839); @@ -145,7 +145,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0005247076, -0.0064215013, -0.0063047167, -0.0045687305); @@ -168,7 +168,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0048197624, 0.0075116986, 0.0099129155, 0.00775909); @@ -191,7 +191,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.014978659, 0.0050648223, 0.0076116957, -0.007783821); @@ -221,7 +221,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.02761569, -0.001303431, 0.0059456453, 0.011364153); @@ -314,7 +314,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.016769439, 0.0025616076, -0.033234686, -0.017233113); @@ -407,7 +407,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.013938967, 0.015533113, 0.0028973701, 0.0075022657); @@ -500,7 +500,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.012518986, 0.0070945756, -0.017511968, -0.011538896); @@ -593,7 +593,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.03394019, 0.0063071293, -0.004553025, 0.0022147307); @@ -686,7 +686,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0088090105, -0.016752342, -0.039628763, -0.015084046); @@ -779,7 +779,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.01535246, 0.002334057, 0.010469864, 0.0068757595); @@ -872,7 +872,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0044188052, -0.009346381, -0.012235327, 0.015252484); @@ -965,7 +965,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.003442629, 0.013375611, 0.011637685, -0.0033052866); @@ -1058,7 +1058,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0026704965, -0.0069852816, 0.013155309, -0.0030670145); @@ -1151,7 +1151,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.008124407, -0.0020193816, 0.012078299, 0.0024210974); @@ -1244,7 +1244,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.011652052, 0.022062385, -0.001546929, 0.00020062509); @@ -1337,7 +1337,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.01857259, 0.020888787, 0.007238534, -0.00403704); @@ -1430,7 +1430,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.01353681, 0.0059173047, 0.009455066, -0.06561346); @@ -1523,7 +1523,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0004264091, 0.005937544, 0.0035721099, -0.014284692); @@ -1616,7 +1616,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0053789704, 0.0025854765, 0.015197983, -0.011652295); @@ -1709,7 +1709,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.004638044, 0.0013329395, -0.00088052906, -0.0008565964); @@ -1802,7 +1802,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0036242744, -0.005289604, -0.006082875, -0.004486832); @@ -1895,7 +1895,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.007836888, -0.017780114, -0.0030567038, -0.012376305); @@ -1988,7 +1988,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0026036764, 0.0044385036, -0.0040474595, 0.009238027); @@ -2081,7 +2081,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.004735955, -0.011154338, 0.00050490565, -0.008099378); @@ -2174,7 +2174,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.010292046, 0.017811157, 0.0015870796, 0.0039759693); @@ -2267,7 +2267,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.004757555, 0.0066921245, 0.0015465204, -0.000539636); @@ -2360,7 +2360,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.010093253, 0.0030979498, -0.009945917, -0.0028646134); @@ -2453,7 +2453,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.001297498, -0.0065087434, -0.009712298, 0.0029563736); @@ -2546,7 +2546,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.006379549, -0.008068941, -0.006406628, -0.0015497542); @@ -2639,7 +2639,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0033967996, -0.011525759, 0.001000769, 0.0024347317); @@ -2732,7 +2732,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.001753894, -0.0013974875, -0.004897225, -0.005634429); @@ -2825,7 +2825,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0077957916, 0.0060499012, -0.010836468, -0.0017485411); @@ -2918,7 +2918,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.017064162, -0.009138364, -0.01383351, 0.00047878188); @@ -3011,7 +3011,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.009212119, 0.003507561, 0.0017614447, -0.000891854); @@ -3104,7 +3104,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.002669215, -0.01324276, -0.00011292872, -0.010680473); @@ -3197,7 +3197,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0068704183, -0.0008184981, 0.00053801516, -0.005115695); @@ -3290,7 +3290,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0015744518, -0.00315685, -0.0047916123, -0.0009097862); @@ -3383,7 +3383,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0012241185, 0.0021334367, 0.0068932255, 0.002486373); @@ -3476,7 +3476,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.00066564477, 0.0010563044, 0.0043857675, 0.0033964757); @@ -3569,7 +3569,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0066810246, 0.0018481286, -0.00033951848, 0.0037572116); @@ -3662,7 +3662,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.003744023, 0.004870065, 0.00056463777, 0.0051579904); @@ -3755,7 +3755,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.00010800735, -0.0060253716, -0.00014175977, -0.0024079708); @@ -3848,7 +3848,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.005779137, 0.00042278095, -0.006643014, 0.0032105937); @@ -3949,7 +3949,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.024332196, 0.027890053, 0.015494279, 0.016373875); @@ -4034,7 +4034,7 @@ vec4 hook() { //!WIDTH LUMA.w 2.0 * //!HEIGHT LUMA.h 2.0 * //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0, 0.0, 0.0, 1.0); diff --git a/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2_CMP.glsl b/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2_CMP.glsl index 1f023ffb..ee90f132 100644 --- a/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2_CMP.glsl +++ b/portable_config/shaders/Ani4Kv2_ArtCNN_C4F32_i2_CMP.glsl @@ -31,6 +31,7 @@ //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -162,6 +163,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -804,6 +806,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -1446,6 +1449,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -2088,6 +2092,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -2730,6 +2735,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -3373,6 +3379,7 @@ void hook() { //!WIDTH LUMA.w 1.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -3489,6 +3496,7 @@ void hook() { //!WIDTH LUMA.w 2.0 * //!HEIGHT LUMA.h 2.0 * //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 diff --git a/portable_config/shaders/AniSD_ArtCNN_C4F32_i4.glsl b/portable_config/shaders/AniSD_ArtCNN_C4F32_i4.glsl index ed813e1a..830e78d3 100644 --- a/portable_config/shaders/AniSD_ArtCNN_C4F32_i4.glsl +++ b/portable_config/shaders/AniSD_ArtCNN_C4F32_i4.glsl @@ -30,7 +30,7 @@ //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.013978721, 0.0031982274, -0.00406756, 0.01177468); @@ -53,7 +53,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0042411904, 0.004277534, -0.013120737, 0.0027991557); @@ -76,7 +76,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0024795982, -0.008282674, 0.01554379, 0.014000561); @@ -99,7 +99,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.002182056, 0.006310906, -0.007791593, -0.005081797); @@ -122,7 +122,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.002427759, -0.0032887238, 0.0003240174, -0.0014591495); @@ -145,7 +145,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.001394779, -0.0072305053, -0.0030902666, -0.0069876867); @@ -168,7 +168,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0080422275, 0.009037509, 0.010156446, 0.011443132); @@ -191,7 +191,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.012365459, 0.00826808, 0.013948916, -0.015842063); @@ -221,7 +221,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.026006414, -0.0028226124, 0.0040266206, 0.0070237666); @@ -314,7 +314,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.011197032, 0.0011845044, -0.00043132543, -0.010066675); @@ -407,7 +407,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0033872693, 0.01203482, -0.0007529152, 0.014821875); @@ -500,7 +500,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.008739096, 0.0024725376, -0.013386704, -0.0038562224); @@ -593,7 +593,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.048475258, -0.0016466539, 0.00079193723, -0.00085421646); @@ -686,7 +686,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.004292939, -0.007199753, -0.020891383, -0.014245914); @@ -779,7 +779,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.008209412, 0.0036267866, 0.010955691, 0.012122923); @@ -872,7 +872,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.007201527, -0.0038936515, -0.015014618, 0.015171136); @@ -965,7 +965,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0038961265, 0.001332783, 0.0017195513, -0.012215322); @@ -1058,7 +1058,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.01809597, -0.007259329, 0.011446571, 0.009539949); @@ -1151,7 +1151,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0102932025, -0.016872637, -0.003169691, 0.01035535); @@ -1244,7 +1244,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0024439683, 0.019512722, -0.0017031707, -0.0012694178); @@ -1337,7 +1337,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.015284621, 0.0075803893, 0.0035219751, -0.00810834); @@ -1430,7 +1430,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.017029766, 0.0026182518, 0.0076097404, -0.05298403); @@ -1523,7 +1523,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.010690784, 0.005997089, 0.002451169, -0.005412337); @@ -1616,7 +1616,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.00064860965, -0.0002542105, 0.0034470388, -0.00044491922); @@ -1709,7 +1709,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0041763675, -0.00015561197, 0.00043137456, -0.005530642); @@ -1802,7 +1802,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.001695126, 0.0035469946, -0.0029454967, -0.00041324383); @@ -1895,7 +1895,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0045238333, -0.004889116, 0.0029066089, 0.0005750118); @@ -1988,7 +1988,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.003947234, -0.002561167, -0.0011790267, -2.014591e-05); @@ -2081,7 +2081,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.002063369, 0.0013652911, -0.0058718277, -0.004708916); @@ -2174,7 +2174,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0018502712, 0.013060026, -0.0016276615, 0.0031085813); @@ -2267,7 +2267,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0040995805, 0.0007194403, 0.0008392621, 0.001028336); @@ -2360,7 +2360,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0048161834, 0.009727377, -0.0014840926, 0.00012165853); @@ -2453,7 +2453,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0015804664, -0.0038044306, -0.003628573, 0.0049998662); @@ -2546,7 +2546,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0061072186, -0.00016473095, -0.00831442, -0.0020987126); @@ -2639,7 +2639,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0037414776, -0.008942531, -0.0019100541, 0.0044174613); @@ -2732,7 +2732,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.005183828, 9.48733e-05, 0.0036475817, -0.007278215); @@ -2825,7 +2825,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.001659712, 0.0015686982, -0.0026812244, -0.0010323082); @@ -2918,7 +2918,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.007896668, -0.0039458103, 0.0026883641, -0.0024681427); @@ -3011,7 +3011,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0060613896, 0.00046012708, 0.0033240172, -0.002245667); @@ -3104,7 +3104,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0014251472, -0.00062698225, 0.0018863081, -0.0067351423); @@ -3197,7 +3197,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.007920542, -0.0022907562, 0.0014729282, -0.0029908211); @@ -3290,7 +3290,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.003317229, -0.0064632413, -0.0041693165, -0.0017572003); @@ -3383,7 +3383,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0009868728, 0.0007818244, 0.0053685713, 0.0057270383); @@ -3476,7 +3476,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0017613086, -0.0024319342, -0.0029362098, 0.0037423957); @@ -3569,7 +3569,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.005729667, -0.00043015095, -0.0010953381, 0.004356304); @@ -3662,7 +3662,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0017306447, 0.0060327337, -0.0022298389, 0.0031541034); @@ -3755,7 +3755,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0038989536, -0.0043582628, 0.001294654, 0.0009452332); @@ -3848,7 +3848,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(-0.0038117077, 0.0017851336, -0.0016869111, 0.0009794832); @@ -3949,7 +3949,7 @@ vec4 hook() { //!WIDTH LUMA.w //!HEIGHT LUMA.h //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.021847418, 0.026646165, 0.011850322, 0.014434359); @@ -4034,7 +4034,7 @@ vec4 hook() { //!WIDTH LUMA.w 2.0 * //!HEIGHT LUMA.h 2.0 * //!COMPONENTS 4 - +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * vec4 hook() { vec4 result = vec4(0.0, 0.0, 0.0, 1.0); diff --git a/portable_config/shaders/AniSD_ArtCNN_C4F32_i4_CMP.glsl b/portable_config/shaders/AniSD_ArtCNN_C4F32_i4_CMP.glsl index 1f46b6fa..e27fb1fc 100644 --- a/portable_config/shaders/AniSD_ArtCNN_C4F32_i4_CMP.glsl +++ b/portable_config/shaders/AniSD_ArtCNN_C4F32_i4_CMP.glsl @@ -32,6 +32,7 @@ //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -163,6 +164,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -805,6 +807,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -1447,6 +1450,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -2089,6 +2093,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -2731,6 +2736,7 @@ void hook() { //!WIDTH LUMA.w 8.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -3374,6 +3380,7 @@ void hook() { //!WIDTH LUMA.w 1.0 * //!HEIGHT LUMA.h //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16 @@ -3490,6 +3497,7 @@ void hook() { //!WIDTH LUMA.w 2.0 * //!HEIGHT LUMA.h 2.0 * //!COMPONENTS 4 +//!WHEN OUTPUT.w LUMA.w / 1.2 > OUTPUT.h LUMA.h / 1.2 > * #extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable #ifdef GL_EXT_shader_explicit_arithmetic_types_float16