]> granicus.if.org Git - file/commitdiff
Add trace files ( Mike Weiblen )
authorChristos Zoulas <christos@zoulas.com>
Thu, 23 Mar 2017 22:11:53 +0000 (22:11 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 23 Mar 2017 22:11:53 +0000 (22:11 +0000)
magic/Magdir/gpu

index d6835c564c62387fa4d32cbbfd0b0b32c1a2b621..62e30d0f7a25703e2627cff0658bf810d39a6f00 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: images,v 1.118 2016/11/08 02:58:21 christos Exp $
+# $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)
 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