Atlas - D3D9_PixelShader_Palette_Linear.h

Home / ext / SDL / src / render / direct3d Lines: 1 | Size: 6175 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#if 0 2// 3// Generated by Microsoft (R) HLSL Shader Compiler 10.1 4// 5// Parameters: 6// 7// sampler2D image; 8// sampler1D palette; 9// float4 texel_size; 10// 11// 12// Registers: 13// 14// Name Reg Size 15// ------------ ----- ---- 16// texel_size c0 1 17// image s0 1 18// palette s1 1 19// 20 21 ps_2_0 22 def c1, 0.5, -0.5, 255, 0.00390625 23 dcl t0.xy 24 dcl v0 25 dcl_2d s0 26 dcl_2d s1 27 mov r0.w, c1.x 28 mad r0.x, t0.x, c0.z, r0.w 29 mad r0.y, t0.y, c0.w, r0.w 30 frc r0.zw, r0.wzyx 31 add r0.xy, -r0.wzyx, r0 32 add r1.xy, r0, c1.y 33 add r0.xy, r0, c1.x 34 mul r0.xy, r0, c0 35 mul r1.xy, r1, c0 36 mov r2.x, r1.x 37 mov r2.y, r0.y 38 mov r3.y, r1.y 39 mov r3.x, r0.x 40 texld r2, r2, s0 41 texld r1, r1, s0 42 texld r4, r0, s0 43 texld r3, r3, s0 44 mad r0.x, r2.x, c1.z, c1.x 45 mul r0.xy, r0.x, c1.w 46 mad r1.x, r1.x, c1.z, c1.x 47 mul r1.xy, r1.x, c1.w 48 mad r1.z, r4.x, c1.z, c1.x 49 mul r2.xy, r1.z, c1.w 50 mad r1.z, r3.x, c1.z, c1.x 51 mul r3.xy, r1.z, c1.w 52 texld r4, r0, s1 53 texld r1, r1, s1 54 texld r2, r2, s1 55 texld r3, r3, s1 56 lrp r5, r0.z, r4, r1 57 lrp r1, r0.z, r2, r3 58 lrp r2, r0.w, r1, r5 59 mul r0, r2, v0 60 mov oC0, r0 61 62// approximately 34 instruction slots used (8 texture, 26 arithmetic) 63#endif 64 65const BYTE g_ps20_main[] = 66{ 67 0, 2, 255, 255, 254, 255, 68 54, 0, 67, 84, 65, 66, 69 28, 0, 0, 0, 171, 0, 70 0, 0, 0, 2, 255, 255, 71 3, 0, 0, 0, 28, 0, 72 0, 0, 0, 1, 0, 0, 73 164, 0, 0, 0, 88, 0, 74 0, 0, 3, 0, 0, 0, 75 1, 0, 0, 0, 96, 0, 76 0, 0, 0, 0, 0, 0, 77 112, 0, 0, 0, 3, 0, 78 1, 0, 1, 0, 0, 0, 79 120, 0, 0, 0, 0, 0, 80 0, 0, 136, 0, 0, 0, 81 2, 0, 0, 0, 1, 0, 82 0, 0, 148, 0, 0, 0, 83 0, 0, 0, 0, 105, 109, 84 97, 103, 101, 0, 171, 171, 85 4, 0, 12, 0, 1, 0, 86 1, 0, 1, 0, 0, 0, 87 0, 0, 0, 0, 112, 97, 88 108, 101, 116, 116, 101, 0, 89 4, 0, 11, 0, 1, 0, 90 1, 0, 1, 0, 0, 0, 91 0, 0, 0, 0, 116, 101, 92 120, 101, 108, 95, 115, 105, 93 122, 101, 0, 171, 1, 0, 94 3, 0, 1, 0, 4, 0, 95 1, 0, 0, 0, 0, 0, 96 0, 0, 112, 115, 95, 50, 97 95, 48, 0, 77, 105, 99, 98 114, 111, 115, 111, 102, 116, 99 32, 40, 82, 41, 32, 72, 100 76, 83, 76, 32, 83, 104, 101 97, 100, 101, 114, 32, 67, 102 111, 109, 112, 105, 108, 101, 103 114, 32, 49, 48, 46, 49, 104 0, 171, 81, 0, 0, 5, 105 1, 0, 15, 160, 0, 0, 106 0, 63, 0, 0, 0, 191, 107 0, 0, 127, 67, 0, 0, 108 128, 59, 31, 0, 0, 2, 109 0, 0, 0, 128, 0, 0, 110 3, 176, 31, 0, 0, 2, 111 0, 0, 0, 128, 0, 0, 112 15, 144, 31, 0, 0, 2, 113 0, 0, 0, 144, 0, 8, 114 15, 160, 31, 0, 0, 2, 115 0, 0, 0, 144, 1, 8, 116 15, 160, 1, 0, 0, 2, 117 0, 0, 8, 128, 1, 0, 118 0, 160, 4, 0, 0, 4, 119 0, 0, 1, 128, 0, 0, 120 0, 176, 0, 0, 170, 160, 121 0, 0, 255, 128, 4, 0, 122 0, 4, 0, 0, 2, 128, 123 0, 0, 85, 176, 0, 0, 124 255, 160, 0, 0, 255, 128, 125 19, 0, 0, 2, 0, 0, 126 12, 128, 0, 0, 27, 128, 127 2, 0, 0, 3, 0, 0, 128 3, 128, 0, 0, 27, 129, 129 0, 0, 228, 128, 2, 0, 130 0, 3, 1, 0, 3, 128, 131 0, 0, 228, 128, 1, 0, 132 85, 160, 2, 0, 0, 3, 133 0, 0, 3, 128, 0, 0, 134 228, 128, 1, 0, 0, 160, 135 5, 0, 0, 3, 0, 0, 136 3, 128, 0, 0, 228, 128, 137 0, 0, 228, 160, 5, 0, 138 0, 3, 1, 0, 3, 128, 139 1, 0, 228, 128, 0, 0, 140 228, 160, 1, 0, 0, 2, 141 2, 0, 1, 128, 1, 0, 142 0, 128, 1, 0, 0, 2, 143 2, 0, 2, 128, 0, 0, 144 85, 128, 1, 0, 0, 2, 145 3, 0, 2, 128, 1, 0, 146 85, 128, 1, 0, 0, 2, 147 3, 0, 1, 128, 0, 0, 148 0, 128, 66, 0, 0, 3, 149 2, 0, 15, 128, 2, 0, 150 228, 128, 0, 8, 228, 160, 151 66, 0, 0, 3, 1, 0, 152 15, 128, 1, 0, 228, 128, 153 0, 8, 228, 160, 66, 0, 154 0, 3, 4, 0, 15, 128, 155 0, 0, 228, 128, 0, 8, 156 228, 160, 66, 0, 0, 3, 157 3, 0, 15, 128, 3, 0, 158 228, 128, 0, 8, 228, 160, 159 4, 0, 0, 4, 0, 0, 160 1, 128, 2, 0, 0, 128, 161 1, 0, 170, 160, 1, 0, 162 0, 160, 5, 0, 0, 3, 163 0, 0, 3, 128, 0, 0, 164 0, 128, 1, 0, 255, 160, 165 4, 0, 0, 4, 1, 0, 166 1, 128, 1, 0, 0, 128, 167 1, 0, 170, 160, 1, 0, 168 0, 160, 5, 0, 0, 3, 169 1, 0, 3, 128, 1, 0, 170 0, 128, 1, 0, 255, 160, 171 4, 0, 0, 4, 1, 0, 172 4, 128, 4, 0, 0, 128, 173 1, 0, 170, 160, 1, 0, 174 0, 160, 5, 0, 0, 3, 175 2, 0, 3, 128, 1, 0, 176 170, 128, 1, 0, 255, 160, 177 4, 0, 0, 4, 1, 0, 178 4, 128, 3, 0, 0, 128, 179 1, 0, 170, 160, 1, 0, 180 0, 160, 5, 0, 0, 3, 181 3, 0, 3, 128, 1, 0, 182 170, 128, 1, 0, 255, 160, 183 66, 0, 0, 3, 4, 0, 184 15, 128, 0, 0, 228, 128, 185 1, 8, 228, 160, 66, 0, 186 0, 3, 1, 0, 15, 128, 187 1, 0, 228, 128, 1, 8, 188 228, 160, 66, 0, 0, 3, 189 2, 0, 15, 128, 2, 0, 190 228, 128, 1, 8, 228, 160, 191 66, 0, 0, 3, 3, 0, 192 15, 128, 3, 0, 228, 128, 193 1, 8, 228, 160, 18, 0, 194 0, 4, 5, 0, 15, 128, 195 0, 0, 170, 128, 4, 0, 196 228, 128, 1, 0, 228, 128, 197 18, 0, 0, 4, 1, 0, 198 15, 128, 0, 0, 170, 128, 199 2, 0, 228, 128, 3, 0, 200 228, 128, 18, 0, 0, 4, 201 2, 0, 15, 128, 0, 0, 202 255, 128, 1, 0, 228, 128, 203 5, 0, 228, 128, 5, 0, 204 0, 3, 0, 0, 15, 128, 205 2, 0, 228, 128, 0, 0, 206 228, 144, 1, 0, 0, 2, 207 0, 8, 15, 128, 0, 0, 208 228, 128, 255, 255, 0, 0 209}; 210
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.