summaryrefslogtreecommitdiff
path: root/magic/Magdir/gpu
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-09-02 08:54:31 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-09-02 08:54:31 +0000
commit10429269fbeb9442be4c5592b9111ccedbfefd0d (patch)
treeec492f5b26d71445da74668b4c967621e9ebc556 /magic/Magdir/gpu
parent670c2bbcffe873a2b8589ed140c12e7923ef20c0 (diff)
downloadfile-10429269fbeb9442be4c5592b9111ccedbfefd0d.tar.gz
Diffstat (limited to 'magic/Magdir/gpu')
-rw-r--r--magic/Magdir/gpu28
1 files changed, 28 insertions, 0 deletions
diff --git a/magic/Magdir/gpu b/magic/Magdir/gpu
new file mode 100644
index 0000000..62e30d0
--- /dev/null
+++ b/magic/Magdir/gpu
@@ -0,0 +1,28 @@
+
+#------------------------------------------------------------------------------
+# $File: gpu,v 1.2 2017/03/23 22:11:53 christos Exp $
+# gpu: file(1) magic for GPU input files
+
+# Standard Portable Intermediate Representation (SPIR)
+# Documentation: https://www.khronos.org/spir
+# Typical file extension: .spv
+
+0 belong 0x07230203 Khronos SPIR-V binary, big-endian
+>4 belong x \b, version 0x%08x
+>8 belong x \b, generator 0x%08x
+
+0 lelong 0x07230203 Khronos SPIR-V binary, little-endian
+>4 lelong x \b, version 0x%08x
+>8 lelong x \b, generator 0x%08x
+
+# Vulkan Trace file
+# Documentation:
+# https://github.com/LunarG/VulkanTools/blob/master/vktrace/vktrace_common/\
+# vktrace_trace_packet_identifiers.h
+# Typical file extension: .vktrace
+
+8 lequad 0xABADD068ADEAFD0C Vulkan trace file, little-endian
+>0 leshort x \b, version %d
+
+8 bequad 0xABADD068ADEAFD0C Vulkan trace file, big-endian
+>0 beshort x \b, version %d