hlsl.pp.line4.frag 721 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #line 1 "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
  2. Texture2D g_tColor [ 128 ] ;
  3. layout ( push_constant ) cbuffer PerViewConstantBuffer_t
  4. {
  5. uint g_nDataIdx ;
  6. uint g_nDataIdx2 ;
  7. bool g_B ;
  8. } ;
  9. #line 12
  10. SamplerState g_sAniso ;
  11. struct PS_INPUT
  12. {
  13. float2 vTextureCoords : TEXCOORD2 ;
  14. } ;
  15. struct PS_OUTPUT
  16. {
  17. float4 vColor : SV_Target0 ;
  18. } ;
  19. PS_OUTPUT MainPs ( PS_INPUT i )
  20. {
  21. PS_OUTPUT ps_output ;
  22. uint u ;
  23. if ( g_B )
  24. #line 1 "C:\\Users\\Greg\\shaders\\line\\u1.h"
  25. u = g_nDataIdx ;
  26. #line 31 "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
  27. else
  28. u = g_nDataIdx2 ;
  29. ps_output . vColor = g_tColor [ u ] . Sample ( g_sAniso , i . vTextureCoords . xy ) ;
  30. return ps_output ;
  31. }