//HUD- lines
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v1.3.16 on Sun Aug 16 00:01:43 2020
//
//
// Buffer Definitions:
//
// cbuffer UILineShaderDynamic
// {
//
//   float4 globalColor;                // Index:    0.xyzw           Components:     4 [unused]
//   float4 f4ParentPosAlpha;           // Index:    1.xyzw           Components:     4
//   float4 f4TextureScaleOffset;       // Index:    2.xyzw           Components:     4 [unused]
//   float4 parentClip;                 // Index:    3.xyzw           Components:     4 [unused]
//   row_major float4x4 g_mVertTransform;// Index:    4 5 6 7          Components:    16
//   float4 Vertices[128];              // Index:    8-135            Components:   512
//
// }
//
// cbuffer ForgeUIGlobals
// {
//
//   row_major float4x4 g_ViewProj;     // Index:    0 1 2 3          Components:    16
//   bool g_bLinearOutput;              // Index:    4.x              Components:     1 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// UILineShaderDynamic               cbuffer      NA          NA    0        1
// ForgeUIGlobals                    cbuffer      NA          NA    1        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_VERTEXID              0   x           0   VERTID    uint   x
// SV_INSTANCEID            0   x           1   INSTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 1     zw        1     NONE   float     zw
// TEXCOORD                 2   xy          2     NONE   float   xy
// TEXCOORD                 3   x           3     NONE   float   x
// COLOR                    0   xyzw        4     NONE   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_immediateConstantBuffer { { 1.000000, 0, 0, 0},
                              { 0, 1.000000, 0, 0},
                              { 0, 0, 1.000000, 0},
                              { 0, 0, 0, 1.000000},
                              { 0, 0, 0, -1.000000} }
dcl_constantbuffer cb0[136], dynamicIndexed
dcl_constantbuffer cb1[4], immediateIndexed
dcl_input_sgv v0.x, vertex_id
dcl_input_sgv v1.x, instance_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o1.zw
dcl_output o2.xy
dcl_output o3.x
dcl_output o4.xyzw

dcl_resource_texture2d (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
dcl_temps 7

ushr r0.x, v0.x, l(1)
mov r0.y, v1.x
mul r0.zw, cb0[5].xxxy, cb0[r0.y + 8].yyyy
mad r0.zw, cb0[r0.y + 8].xxxx, cb0[4].xxxy, r0.zzzw
add r1.xy, r0.zwzz, cb0[7].xyxx
iadd r0.z, v0.x, l(1)
and r0.z, r0.z, l(1)
mul r2.xy, r1.xyxx, icb[r0.z + 0].xxxx
iadd r0.w, v1.x, l(1)
mul r3.xy, cb0[5].xyxx, cb0[r0.w + 8].yyyy
mad r3.xy, cb0[r0.w + 8].xxxx, cb0[4].xyxx, r3.xyxx
add r1.zw, r3.xxxy, cb0[7].xxxy
mul r3.xy, r1.zwzz, icb[r0.z + 0].yyyy
mul r2.w, l(0.500000), cb0[r0.y + 8].z
mul r2.z, r2.w, icb[r0.z + 0].x
mul r2.w, l(0.500000), cb0[r0.w + 8].z
mul r3.z, r2.w, icb[r0.z + 0].y
add r2.xyz, r2.xyzx, r3.xyzx
add r2.w, r2.z, l(1.414290)
mul r0.x, r2.w, icb[r0.x + 3].w
add r3.xy, -r1.xyxx, r1.zwzz
mov o1.xyzw, r1.xyzw
dp2 r1.x, r3.xyxx, r3.xyxx
rsq r1.x, r1.x
mul r1.xy, r1.xxxx, r3.xyxx
mov r1.z, -r1.y
mad r1.xy, r0.xxxx, r1.zxzz, r2.xyxx
mov o3.x, r2.z
add r1.zw, r1.xxxy, cb0[1].xxxy
mov o2.xy, r1.xyxx
mul r2.xyzw, r1.wwww, cb1[1].xyzw
mad r1.xyzw, r1.zzzz, cb1[0].xyzw, r2.xyzw
add r6.xyzw, r1.xyzw, cb1[3].xyzw


ld_indexable(texture2d)(float,float,float,float) r4.xyzw, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture1d)(float,float,float,float) r5.xyzw, l(2, 0, 0, 0), t120.xyzw
mad r6.x, r4.x, r5.y, r6.x

mov o0.xyzw, r6.xyzw

and r0.x, l(255), cb0[r0.w + 8].w
utof r1.x, r0.x
ubfe r2.xy, l(8, 8, 0, 0), l(8, 16, 0, 0), cb0[r0.w + 8].wwww
ushr r0.x, cb0[r0.w + 8].w, l(24)
utof r1.w, r0.x
utof r1.yz, r2.xxyx
mul r1.xyzw, r1.xyzw, l(0.00392156886, 0.00392156886, 0.00392156886, 0.00392156886)
and r0.x, l(255), cb0[r0.y + 8].w
utof r2.x, r0.x
ubfe r0.xw, l(8, 0, 0, 8), l(8, 0, 0, 16), cb0[r0.y + 8].wwww
ushr r0.y, cb0[r0.y + 8].w, l(24)
utof r2.yzw, r0.xxwy
mul r2.xyzw, r2.xyzw, l(0.00392156886, 0.00392156886, 0.00392156886, 0.00392156886)
mul r2.xyzw, r2.xyzw, icb[r0.z + 0].xxxx
mad o4.xyzw, icb[r0.z + 0].yyyy, r1.xyzw, r2.xyzw
ret
// Approximately 49 instruction slots used
