attribute-specifiers-sequence-closure.azsl 742 B

1234567891011121314151617181920212223
  1. // Make sure the attribute sequences don't interfere with multiarray closure ]]
  2. [[global::output_format("R16G16B16A16_FLOAT")]]
  3. [[global::output_format(0, "R32")]]
  4. [[global::output_format(1, "R32G32")]]
  5. [[global::output_format(2, "R32A32")]]
  6. [[global::output_format(3, "R16G16B16A16_UNORM")]]
  7. [[global::output_format(4, "R16G16B16A16_SNORM")]]
  8. [[global::output_format(5, "R16G16B16A16_UINT")]]
  9. [[global::output_format(6, "R16G16B16A16_SINT")]]
  10. [[global::output_format(7, "R32G32B32A32")]]
  11. struct V { float3 normal; };
  12. static const V Vertices[8];
  13. static const uint3 Indices;
  14. void F()
  15. {
  16. float3 vertexNormals[3] = {
  17. Vertices[Indices[0]].normal,
  18. Vertices[Indices[1]].normal,
  19. Vertices[Indices[2]].normal
  20. };
  21. }