//strategy map
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v1.3.16 on Sat Aug 15 22:58:34 2020
//
//
// Buffer Definitions:
//
// cbuffer StrategicView_TerrainShaderBatchDynamics
// {
//
//   row_major float4x4 gd_TextureMatrix;// Index:    0 1 2 3          Components:    16
//   row_major float4x4 gd_HexToWorld;  // Index:    4 5 6 7          Components:    16
//   float4 gd_HexOffset[64];           // Index:    8-71             Components:   256
//   float4 gd_aVisibility[64];         // Index:   72-135            Components:   256
//   uint4 gd_aArrayIndices[64];        // Index:  136-199            Components:   256
//
// }
//
// cbuffer StrategicViewShaderGlobals
// {
//
//   row_major float4x4 ViewProjectionMatrix;// Index:    0 1 2 3          Components:    16
//   float4 TilingUVTransform;          // Index:    4.xyzw           Components:     4 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// StrategicView_TerrainShaderBatchDynamics    cbuffer      NA          NA    0        1
// StrategicViewShaderGlobals        cbuffer      NA          NA    1        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_VERTEXID              0   x           0   VERTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xy          3     NONE   float   xy
// TEXCOORD                 3   xyz         4     NONE   float   xyz
// TEXCOORD                 4   xyzw        5     NONE    uint   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[200], dynamicIndexed
dcl_constantbuffer cb1[4], immediateIndexed
dcl_input_sgv v0.x, vertex_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xy
dcl_output o4.xyz
dcl_output o5.xyzw

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

dcl_indexableTemp x0[6], 4
dcl_indexableTemp x1[6], 4
mov x0[0].xy, l(1.000000,0.750000,0,0)
mov x0[1].xy, l(1.000000,0.250000,0,0)
mov x0[2].xy, l(0.500000,0,0,0)
mov x0[3].xy, l(0,0.250000,0,0)
mov x0[4].xy, l(0,0.750000,0,0)
mov x0[5].xy, l(0.500000,1.000000,0,0)
mov x1[0].xy, l(0.666666687,-0.333333343,0,0)
mov x1[1].xy, l(0.333333343,0.333333343,0,0)
mov x1[2].xy, l(-0.333333343,0.666666687,0,0)
mov x1[3].xy, l(-0.666666687,0.333333343,0,0)
mov x1[4].xy, l(-0.333333343,-0.333333343,0,0)
mov x1[5].xy, l(0.333333343,-0.666666687,0,0)
udiv r0.x, r1.x, v0.x, l(6)
mov r2.xy, x1[r1.x + 0].xyxx
add r2.z, -r2.y, -r2.x
mov r2.w, l(1.000000)
add r2.xyzw, r2.xyzw, cb0[r0.x + 8].xyzw
mul r0.yzw, r2.yyyy, cb0[5].xxyz
mad r0.yzw, r2.xxxx, cb0[4].xxyz, r0.yyzw
mad r0.yzw, r2.zzzz, cb0[6].xxyz, r0.yyzw
mad r0.yzw, r2.wwww, cb0[7].xxyz, r0.yyzw
mad r0.yzw, r0.yyzw, l(0.000000, 10.000000, 10.000000, 10.000000), l(0.000000, 0.500000, 0.500000, 0.500000)
round_ni r0.yzw, r0.yyzw
mul r0.yzw, r0.yyzw, l(0.000000, 0.100000, 0.100000, 0.100000)
mul r2.xyzw, r0.zzzz, cb1[1].xyzw
mad r2.xyzw, r0.yyyy, cb1[0].xyzw, r2.xyzw
mad r2.xyzw, r0.wwww, cb1[2].xyzw, r2.xyzw
mov o3.xy, r0.yzyy
add r5.xyzw, r2.xyzw, cb1[3].xyzw


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

mov o0.xyzw, r5.xyzw


mov r0.yz, x0[r1.x + 0].xxyx
mul r1.xy, r0.zzzz, cb0[1].xyxx
mad r1.xy, r0.yyyy, cb0[0].xyxx, r1.xyxx
add o1.xy, r1.xyxx, cb0[3].xyxx
add r1.xyzw, r0.yzyz, l(-0.500000, -0.250000, 0.500000, -0.250000)
add r0.yz, r0.yyzy, l(0.000000, 0.000000, 0.500000, 0.000000)
mul r2.xyzw, r1.yyww, cb0[1].xyxy
mad r1.xyzw, r1.xxzz, cb0[0].xyxy, r2.xyzw
add o1.zw, r1.xxxy, cb0[3].xxxy
add o2.xy, r1.zwzz, cb0[3].xyxx
mul r0.zw, r0.zzzz, cb0[1].xxxy
mad r0.yz, r0.yyyy, cb0[0].xxyx, r0.zzwz
add o2.zw, r0.yyyz, cb0[3].xxxy
mov o4.xyz, cb0[r0.x + 72].xyzx
mov o5.xyzw, cb0[r0.x + 136].xyzw
ret
// Approximately 45 instruction slots used
