// ---- Created with 3Dmigoto v1.2.35 on Tue Apr 26 22:30:56 2016

cbuffer fcbVolumeRenderParam : register(b1)
{
  float m_fRTWidth : packoffset(c0);
  float m_fRTHeight : packoffset(c0.y);
  float m_fZNear : packoffset(c0.z);
  float m_fZFar : packoffset(c0.w);
  float3 m_fGridDim : packoffset(c1);
  float m_fOpacityModulator : packoffset(c1.w);
  float3 m_fRecGridDim : packoffset(c2);
  float m_fDummy10 : packoffset(c2.w);
  float m_fMaxGridDim : packoffset(c3);
  float m_fGridScaleFactor : packoffset(c3.y);
  float m_fDummy20 : packoffset(c3.z);
  float m_fDummy21 : packoffset(c3.w);
  float3 m_fEyeOnGrid : packoffset(c4);
  float m_fEdgeThreshold : packoffset(c4.w);
  float4 m_fRenderColor : packoffset(c5);
  float4x4 m_fWorldViewProjection : packoffset(c6);
  float4x4 m_fInvWorldViewProjection : packoffset(c10);
}



// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main( 
  float4 v0 : POSITION0,
  out float4 o0 : SV_Position0,
  out float o1 : TEXCOORD0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = v0.xyz;
  r0.w = 1;
  r1.x = dot(r0.xyzw, m_fWorldViewProjection._m03_m13_m23_m33);
  o0.w = r1.x;
  o1.x = r1.x;
  o0.x = dot(r0.xyzw, m_fWorldViewProjection._m00_m10_m20_m30);
  o0.y = dot(r0.xyzw, m_fWorldViewProjection._m01_m11_m21_m31);
  o0.z = dot(r0.xyzw, m_fWorldViewProjection._m02_m12_m22_m32);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//
// Buffer Definitions: 
//
// cbuffer fcbVolumeRenderParam
// {
//
//   float m_fRTWidth;                  // Offset:    0 Size:     4 [unused]
//   float m_fRTHeight;                 // Offset:    4 Size:     4 [unused]
//   float m_fZNear;                    // Offset:    8 Size:     4 [unused]
//   float m_fZFar;                     // Offset:   12 Size:     4 [unused]
//   float3 m_fGridDim;                 // Offset:   16 Size:    12 [unused]
//   float m_fOpacityModulator;         // Offset:   28 Size:     4 [unused]
//   float3 m_fRecGridDim;              // Offset:   32 Size:    12 [unused]
//   float m_fDummy10;                  // Offset:   44 Size:     4 [unused]
//   float m_fMaxGridDim;               // Offset:   48 Size:     4 [unused]
//   float m_fGridScaleFactor;          // Offset:   52 Size:     4 [unused]
//   float m_fDummy20;                  // Offset:   56 Size:     4 [unused]
//   float m_fDummy21;                  // Offset:   60 Size:     4 [unused]
//   float3 m_fEyeOnGrid;               // Offset:   64 Size:    12 [unused]
//   float m_fEdgeThreshold;            // Offset:   76 Size:     4 [unused]
//   float4 m_fRenderColor;             // Offset:   80 Size:    16 [unused]
//   float4x4 m_fWorldViewProjection;   // Offset:   96 Size:    64
//   float4x4 m_fInvWorldViewProjection;// Offset:  160 Size:    64 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// fcbVolumeRenderParam              cbuffer      NA          NA    1        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyz 
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   x           1     NONE   float   x   
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb1[10], immediateIndexed
dcl_input v0.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.x
dcl_temps 2
mov r0.xyz, v0.xyzx
mov r0.w, l(1.000000)
dp4 r1.x, r0.xyzw, cb1[9].xyzw
mov o0.w, r1.x
mov o1.x, r1.x
dp4 o0.x, r0.xyzw, cb1[6].xyzw
dp4 o0.y, r0.xyzw, cb1[7].xyzw
dp4 o0.z, r0.xyzw, cb1[8].xyzw
ret 
// Approximately 9 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
