aboutsummaryrefslogtreecommitdiff
path: root/disassembly/dwmcore_2004_10.asm
blob: 697ee4e447106ad318b58e7f776235f8b3f2b3eb (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
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.25.950.2675
//
//   using 3Dmigoto v1.3.16 on Wed Feb 09 18:55:49 2022
//
//
// Buffer Definitions:
//
// cbuffer cbPS
// {
//
//   float4 factors;                    // Offset:    0 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Text_Texture                      sampler      NA          NA    0        1
// Text_Texture                      texture  float4          2d    0        1
// cbPS                              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   xy          2     NONE   float   xy
//
//
// 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         1  ( 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 c1, 4, 0, 0, 0
    dcl t1.xy
    dcl_2d s0
    texld r0, t1, s0
    mad r0.y, r0.x, -c0.x, c0.y
    mul r0.x, r0.x, c0.x
    mad r0.z, c0.z, r0.x, c0.w
    mul r0.y, r0.y, r0.z
    mul r0.y, r0.x, r0.y
    mad r0, r0.y, c1.x, r0.x
    mov oC0, r0

// approximately 8 instruction slots used (1 texture, 7 arithmetic)
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 1
sample r0.xyzw, v2.xyxx, t0.xyzw, s0
mad r0.y, -r0.x, cb0[0].x, cb0[0].y
mul r0.x, r0.x, cb0[0].x
mad r0.z, cb0[0].z, r0.x, cb0[0].w
mul r0.y, r0.y, r0.z
mul r0.y, r0.x, r0.y
mad o0.xyzw, r0.yyyy, l(4.000000, 4.000000, 4.000000, 4.000000), r0.xxxx
ret
// Approximately 8 instruction slots used