//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Wed Feb 10 20:18:39 2016
//
//
// Buffer Definitions: 
//
// cbuffer WorldBuffer
// {
//
//   struct WorldStruct
//   {
//       
//       row_major float4x4 ViewProject;// Offset:    0
//       
//       struct WorldStruct_PerInstanceData
//       {
//           
//           row_major float4x4 World;  // Offset:   64
//           row_major float4x4 WorldViewProject;// Offset:  128
//
//       } PerInstance[256];            // Offset:   64
//
//   } WorldParameters;                 // Offset:    0 Size: 32832
//
// }
//
// cbuffer SkinningBuffer
// {
//
//   struct SkinningStruct
//   {
//       
//       float NumSkinMatricesPerInstance;// Offset:    0
//       row_major float4x4 SkinMatrices[1023];// Offset:   16
//
//   } SkinningParameters;              // Offset:    0 Size: 65488
//
// }
//
// cbuffer StreamDeclBuffer
// {
//
//   float4 NormalScaleOffset;          // Offset:    0 Size:    16
//   float4 TexcoordScales;             // Offset:   16 Size:    16
//
// }
//
// cbuffer MaterialBuffer
// {
//
//   float4 MaterialParams[512];        // Offset:    0 Size:  8192
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SamplerGenericPointWrap           sampler      NA          NA    9        1
// p_Vertex_8142AE4013241846_cp1_Param_texture    texture  float4          2d    0        1
// WorldBuffer                       cbuffer      NA          NA    0        1
// SkinningBuffer                    cbuffer      NA          NA    1        1
// StreamDeclBuffer                  cbuffer      NA          NA    3        1
// MaterialBuffer                    cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// NORMAL                   0   xyz         0     NONE   float   xyz 
// BLENDWEIGHT              0   xyzw        1     NONE   float   xyzw
// BLENDINDICES             0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 0   xyzw        3     NONE   float   xy  
// POSITION                 0   xyz         4     NONE   float   xyz 
// SV_InstanceID            0   x           5   INSTID    uint   x   
// SV_VertexID              0   x           6   VERTID    uint       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// PSIZE                    0   x           0     NONE    uint   x   
// POSITION                 0   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 0   xyzw        3     NONE   float   xyzw
// TEXCOORD                 2   xyz         4     NONE   float   xyz 
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[2048], dynamicIndexed
dcl_constantbuffer cb1[4092], dynamicIndexed
dcl_constantbuffer cb3[2], immediateIndexed
dcl_constantbuffer cb4[1], immediateIndexed
dcl_sampler s9, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input v0.xyz
dcl_input v1.xyzw
dcl_input v2.xyzw
dcl_input v3.xy
dcl_input v4.xyz
dcl_input_sgv v5.x, instance_id
dcl_output o0.x
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyz
dcl_temps 5
mov o0.x, v5.x
mov o1.w, l(1.000000)
utof r0.x, v5.x
mul r0.x, r0.x, cb1[0].x
round_z r0.x, r0.x
mul r1.xyzw, v2.xyzw, l(255.000000, 255.000000, 255.000000, 255.000000)
round_ne r1.xyzw, r1.xyzw
add r0.xyzw, r0.xxxx, r1.xyzw
ftou r0.xyzw, r0.xyzw
ishl r0.xyzw, r0.xyzw, l(2, 2, 2, 2)
mul r1.xyzw, v1.yyyy, cb1[r0.y + 1].xyzw
mad r1.xyzw, cb1[r0.x + 1].xyzw, v1.xxxx, r1.xyzw
mad r1.xyzw, cb1[r0.z + 1].xyzw, v1.zzzz, r1.xyzw
mad r1.xyzw, cb1[r0.w + 1].xyzw, v1.wwww, r1.xyzw
mov r2.xyz, v4.xyzx
mov r2.w, l(1.000000)
dp4 o1.x, r1.xyzw, r2.xyzw
mul r3.xyzw, v1.yyyy, cb1[r0.y + 2].xyzw
mad r3.xyzw, cb1[r0.x + 2].xyzw, v1.xxxx, r3.xyzw
mad r3.xyzw, cb1[r0.z + 2].xyzw, v1.zzzz, r3.xyzw
mad r3.xyzw, cb1[r0.w + 2].xyzw, v1.wwww, r3.xyzw
dp4 o1.y, r3.xyzw, r2.xyzw
mul r4.xyzw, v1.yyyy, cb1[r0.y + 3].xyzw
mad r4.xyzw, cb1[r0.x + 3].xyzw, v1.xxxx, r4.xyzw
mad r4.xyzw, cb1[r0.z + 3].xyzw, v1.zzzz, r4.xyzw
mad r0.xyzw, cb1[r0.w + 3].xyzw, v1.wwww, r4.xyzw
dp4 o1.z, r0.xyzw, r2.xyzw
ishl r0.w, v5.x, l(3)
mul r1.w, cb4[0].x, l(0.000040)
mul r2.xy, r1.wwww, cb0[r0.w + 7].xyxx
sample_l_indexable(texture2d)(float,float,float,float) o2.xyzw, r2.xyxx, t0.xyzw, s9, l(0.000000)
mul o3.xy, v3.xyxx, cb3[1].xxxx
mov o3.zw, l(0,0,0,0)
mad r2.xyz, cb3[0].xxxx, v0.xyzx, cb3[0].yyyy
dp3 o4.x, r1.xyzx, r2.xyzx
dp3 o4.y, r3.xyzx, r2.xyzx
dp3 o4.z, r0.xyzx, r2.xyzx
ret 
// Approximately 38 instruction slots used
