mat33_padding_run_with_no-alignment-validation.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. Cmdargs: ['--no-alignment-validation']
  3. */
  4. "struct A"
  5. "{"
  6. "struct D"
  7. "{"
  8. "int m_i0 ;"
  9. "float3x3 m_mat1 ;"
  10. "float3x3 m_mat2 ;"
  11. "float m_f3 ;"
  12. "} ;"
  13. ":: A :: D m_d4 ;"
  14. "float m_f5 ;"
  15. "float3x3 m_mat6 ;"
  16. "} ;"
  17. "class B"
  18. "{"
  19. ":: A m_a7 ;"
  20. "int m_f8 ;"
  21. "struct E"
  22. "{"
  23. "float m_f9 ;"
  24. "float3x3 m_mat10 ;"
  25. "} ;"
  26. ":: B :: E m_e11 ;"
  27. "bool IsFalse ( )"
  28. "{"
  29. "float3x3 someMatrix ;"
  30. "return m_mat12 != someMatrix ;"
  31. "}"
  32. "float3x3 m_mat12 ;"
  33. "} ;"
  34. "struct C"
  35. "{"
  36. ":: B m_b13 ;"
  37. "bool m_f14 ;"
  38. "struct F"
  39. "{"
  40. "float m_f15 ;"
  41. "struct G"
  42. "{"
  43. "float m_f16 ;"
  44. "float3x3 m_mat17 ;"
  45. "} ;"
  46. ":: C :: F :: G m_sg18 ;"
  47. "float m_f19 ;"
  48. "} ;"
  49. ":: C :: F m_sf20 ;"
  50. "float3x3 m_mat21 ;"
  51. "} ;"
  52. "/* Generated code from"
  53. "ShaderResourceGroup SRG1"
  54. "*/"
  55. "struct SRG1_SRGConstantsStruct"
  56. "{"
  57. "float3x3 SRG1_m_srg_mat22 ;"
  58. ":: C SRG1_m_c23 ;"
  59. "uint SRG1_m_u24 ;"
  60. "float3x3 SRG1_m_srg_mat25 ;"
  61. "int SRG1_m_i26 ;"
  62. "} ;"
  63. "ConstantBuffer < :: SRG1_SRGConstantsStruct > SRG1_SRGConstantBuffer : register ( b0 , space0 ) ;"
  64. "float4 MainPS ( float2 uv : TEXCOORD0 ) : SV_Target0"
  65. "{"
  66. "float3x3 anotherMatrix ;"
  67. "float4 diffuse = float4 ( :: SRG1_SRGConstantBuffer . SRG1_m_i26 , 0 , 0 , 0 ) ;"
  68. "return diffuse ;"
  69. "}"