seenat-structs.azsl 615 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. struct S
  2. {
  3. };
  4. interface Parent
  5. {
  6. void f(S); // ref 1
  7. };
  8. class Child : Parent
  9. {
  10. S m_s; // ref 2
  11. void f(S a_s) override // ref 3
  12. {
  13. m_s = (S)a_s; // ref 4
  14. }
  15. void g()
  16. {
  17. S local_s; // ref 5
  18. f(local_s);
  19. }
  20. };
  21. ShaderResourceGroupSemantic freq
  22. { FrequencyId = 1; }
  23. ShaderResourceGroup SRG : freq
  24. {
  25. ConstantBuffer<::S> cb; // ref 6
  26. }
  27. struct SS
  28. {
  29. struct S
  30. {
  31. ::S member; // ref 7
  32. };
  33. };
  34. static S g_var; // ref 8
  35. // WARNING: be careful in these files, any change will disrupt line and column numbers as checked by the seenat.py test