xref: /freebsd/contrib/file/magic/Magdir/gpu (revision 43a5ec4eb41567cc92586503212743d89686d78f)
140427ccaSGordon Tetlow
240427ccaSGordon Tetlow#------------------------------------------------------------------------------
3*43a5ec4eSXin LI# $File: gpu,v 1.3 2021/04/26 15:56:00 christos Exp $
440427ccaSGordon Tetlow# gpu: file(1) magic for GPU input files
540427ccaSGordon Tetlow
640427ccaSGordon Tetlow# Standard Portable Intermediate Representation (SPIR)
740427ccaSGordon Tetlow# Documentation: https://www.khronos.org/spir
840427ccaSGordon Tetlow# Typical file extension: .spv
940427ccaSGordon Tetlow
1040427ccaSGordon Tetlow0	belong	0x07230203	Khronos SPIR-V binary, big-endian
11*43a5ec4eSXin LI>4	belong	x		\b, version %#08x
12*43a5ec4eSXin LI>8	belong	x		\b, generator %#08x
1340427ccaSGordon Tetlow
1440427ccaSGordon Tetlow0	lelong	0x07230203      Khronos SPIR-V binary, little-endian
15*43a5ec4eSXin LI>4	lelong	x		\b, version %#08x
16*43a5ec4eSXin LI>8	lelong	x		\b, generator %#08x
1740427ccaSGordon Tetlow
1840427ccaSGordon Tetlow# Vulkan Trace file
1940427ccaSGordon Tetlow# Documentation:
2040427ccaSGordon Tetlow# https://github.com/LunarG/VulkanTools/blob/master/vktrace/vktrace_common/\
2140427ccaSGordon Tetlow# vktrace_trace_packet_identifiers.h
2240427ccaSGordon Tetlow# Typical file extension: .vktrace
2340427ccaSGordon Tetlow
2440427ccaSGordon Tetlow8	lequad  0xABADD068ADEAFD0C	Vulkan trace file, little-endian
2540427ccaSGordon Tetlow>0	leshort	x			\b, version %d
2640427ccaSGordon Tetlow
2740427ccaSGordon Tetlow8	bequad  0xABADD068ADEAFD0C	Vulkan trace file, big-endian
2840427ccaSGordon Tetlow>0	beshort	x			\b, version %d
29