aboutsummaryrefslogtreecommitdiff
path: root/disassembly/dwmcore_2185_10.asm
blob: 1dd9bc28d8daf8b4a61d34931233028998ddcacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.25.950.2675
//
//   using 3Dmigoto v1.3.16 on Wed Feb 09 18:55:48 2022
//
//
// Buffer Definitions:
//
// cbuffer cbPSUpdateEveryCall
// {
//
//   struct
//   {
//
//       struct
//       {
//
//           float4x4 mat4x4;           // Offset:    0
//           float4 matRow4;            // Offset:   64
//
//       } TransformColor_PS2_ConstantTable;// Offset:    0
//
//   } Data_PS;                         // Offset:    0 Size:    80
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SuperSampleTextureFromInterpolatorUV1_Sampler    sampler      NA          NA    0        1
// SuperSampleTextureFromInterpolatorUV1_Sampler    texture  float4          2d    0        1
// cbPSUpdateEveryCall               cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
// TEXCOORD                 3   xyzw        4     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
//
// Constant buffer to DX9 shader constant mappings:
//
// Target Reg Buffer  Start Reg # of Regs        Data Conversion
// ---------- ------- --------- --------- ----------------------
// c0         cb0             0         5  ( FLT, FLT, FLT, FLT)
//
//
// Sampler/Resource to DX9 shader sampler mappings:
//
// Target Sampler Source Sampler  Source Resource
// -------------- --------------- ----------------
// s0             s0              t0
//
//
// Level9 shader bytecode:
//
    ps_2_0
    def c5, 0.25, 0.0404499993, 0.0193498451, 0.0549999997
    def c6, 0.947867274, 2.4000001, 1, 0
    dcl t1
    dcl t2
    dcl t3
    dcl_2d s0
    mov r0.x, t1.z
    mov r0.y, t1.w
    mov r1.x, t2.z
    mov r1.y, t2.w
    texld r0, r0, s0
    texld r2, t1, s0
    texld r3, t2, s0
    texld r1, r1, s0
    add r0.xyz, r0, r2
    add r0.xyz, r3, r0
    add r0.xyz, r1, r0
    mad r0.w, r0.x, c5.x, c5.w
    mul r0.w, r0.w, c6.x
    pow r1.x, r0.w, c6.y
    mad r0.w, r0.x, -c5.x, c5.y
    mul r0.x, r0.x, c5.z
    cmp r1.x, r0.w, r0.x, r1.x
    mad r0.x, r0.y, c5.x, c5.w
    mul r0.x, r0.x, c6.x
    pow r2.x, r0.x, c6.y
    mad r0.x, r0.y, -c5.x, c5.y
    mul r0.y, r0.y, c5.z
    cmp r1.y, r0.x, r0.y, r2.x
    mad r0.x, r0.z, c5.x, c5.w
    mul r0.x, r0.x, c6.x
    pow r2.x, r0.x, c6.y
    mad r0.x, r0.z, -c5.x, c5.y
    mul r0.y, r0.z, c5.z
    cmp r1.z, r0.x, r0.y, r2.x
    mov r1.w, c6.z
    dp4 r0.x, r1, c0
    dp4 r0.y, r1, c1
    dp4 r0.z, r1, c2
    dp4 r0.w, r1, c3
    add r0, r0, c4
    mul r0, r0, t3
    mov oC0, r0

// approximately 43 instruction slots used (4 texture, 39 arithmetic)
ps_4_0
dcl_constantbuffer cb0[5], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xyzw
dcl_input_ps linear v4.xyzw
dcl_output o0.xyzw
dcl_temps 4
sample r0.xyzw, v2.xyxx, t0.xyzw, s0
sample r1.xyzw, v2.zwzz, t0.xyzw, s0
add r0.xyzw, r0.xyzx, r1.xyzx
sample r1.xyzw, v3.xyxx, t0.xyzw, s0
add r0.xyzw, r0.xyzw, r1.xyzx
sample r1.xyzw, v3.zwzz, t0.xyzw, s0
add r0.xyzw, r0.xyzw, r1.xyzx
mad r1.xyz, r0.xyzx, l(0.250000, 0.250000, 0.250000, 0.000000), l(0.055000, 0.055000, 0.055000, 0.000000)
mul r1.xyz, r1.xyzx, l(0.947867274, 0.947867274, 0.947867274, 0.000000)
log r1.xyz, r1.xyzx
mul r1.xyz, r1.xyzx, l(2.400000, 2.400000, 2.400000, 0.000000)
exp r1.xyz, r1.xyzx
mul r2.xy, r0.yzyy, l(0.0193498451, 0.0193498451, 0.000000, 0.000000)
mul r0.xyzw, r0.xyzw, l(0.250000, 0.250000, 0.250000, 0.0193498451)
ge r0.xyz, l(0.040450, 0.040450, 0.040450, 0.000000), r0.xyzx
movc r3.x, r0.x, r0.w, r1.x
movc r3.yz, r0.yyzy, r2.xxyx, r1.yyzy
mov r3.w, l(1.000000)
dp4 r0.x, r3.xyzw, cb0[0].xyzw
dp4 r0.y, r3.xyzw, cb0[1].xyzw
dp4 r0.z, r3.xyzw, cb0[2].xyzw
dp4 r0.w, r3.xyzw, cb0[3].xyzw
add r0.xyzw, r0.xyzw, cb0[4].xyzw
mul o0.xyzw, r0.xyzw, v4.xyzw
ret
// Approximately 25 instruction slots used