gpu 925 B

12345678910111213141516171819202122232425262728
  1. #------------------------------------------------------------------------------
  2. # $File: gpu,v 1.3 2021/04/26 15:56:00 christos Exp $
  3. # gpu: file(1) magic for GPU input files
  4. # Standard Portable Intermediate Representation (SPIR)
  5. # Documentation: https://www.khronos.org/spir
  6. # Typical file extension: .spv
  7. 0 belong 0x07230203 Khronos SPIR-V binary, big-endian
  8. >4 belong x \b, version %#08x
  9. >8 belong x \b, generator %#08x
  10. 0 lelong 0x07230203 Khronos SPIR-V binary, little-endian
  11. >4 lelong x \b, version %#08x
  12. >8 lelong x \b, generator %#08x
  13. # Vulkan Trace file
  14. # Documentation:
  15. # https://github.com/LunarG/VulkanTools/blob/master/vktrace/vktrace_common/\
  16. # vktrace_trace_packet_identifiers.h
  17. # Typical file extension: .vktrace
  18. 8 lequad 0xABADD068ADEAFD0C Vulkan trace file, little-endian
  19. >0 leshort x \b, version %d
  20. 8 bequad 0xABADD068ADEAFD0C Vulkan trace file, big-endian
  21. >0 beshort x \b, version %d