//listing of all techniques and passes with embedded asm listings technique BasicShader { pass P0 { vertexshader = asm { // // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111 // // Parameters: // // float4 DiffLightColor; // float DiffLightIntensity; // // // Registers: // // Name Reg Size // ------------------ ----- ---- // DiffLightColor c0 1 // DiffLightIntensity c1 1 // preshader mul c12, c1.x, c0 // approximately 1 instruction used // // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111 // // Parameters: // // float3 DiffLightDir; // float4x4 ViewProj; // float4x4 World; // float4x4 WorldInvTransp; // // // Registers: // // Name Reg Size // -------------- ----- ---- // World c0 4 // ViewProj c4 4 // WorldInvTransp c8 3 // DiffLightDir c11 1 // vs_2_0 def c13, 0, 1, 0, 0 dcl_position v0 dcl_normal v1 dcl_texcoord v2 dp4 r0.x, v0, c0 dp4 r0.y, v0, c1 dp4 r0.z, v0, c2 dp4 r0.w, v0, c3 dp4 oPos.x, r0, c4 dp4 oPos.y, r0, c5 dp4 oPos.z, r0, c6 dp4 oPos.w, r0, c7 dp4 r0.x, v1, c8 dp4 r0.y, v1, c9 dp4 r0.z, v1, c10 dp3 r0.w, r0, c11 mov oT0.xyz, r0 mul r0, r0.w, c12 max r0, r0, c13.x min oD0, r0, c13.y mov oT1.xy, v2 // approximately 17 instruction slots used }; pixelshader = asm { // // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111 // // Parameters: // // float4 AmbientColor; // float AmbientIntensity; // float4 MatAmb; // // // Registers: // // Name Reg Size // ---------------- ----- ---- // AmbientColor c0 1 // AmbientIntensity c1 1 // MatAmb c2 1 // preshader mul r0, c1.x, c0 mul c1, r0, c2 // approximately 2 instructions used // // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111 // // Parameters: // // float4 MatDiff; // sampler2D textureSampler; // // // Registers: // // Name Reg Size // -------------- ----- ---- // MatDiff c0 1 // textureSampler s0 1 // ps_2_0 def c2, 1, 0, 0, 0 dcl v0 dcl t1.xy dcl_2d s0 texld r0, t1, s0 mov r1, c0 mad r1, v0, r1, c1 mov r0.w, c2.x mul_sat r0, r0, r1 mov oC0, r0 // approximately 6 instruction slots used (1 texture, 5 arithmetic) }; } }