blob: 878820d563f1e9a1b1c5e12a8f93ea93032ca49e [file] [log] [blame]
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -06001/*
Karl Schultz1fa32a82016-02-04 11:33:21 -07002 * Copyright (c) 2015-2016 The Khronos Group Inc.
3 * Copyright (c) 2015-2016 Valve Corporation
4 * Copyright (c) 2015-2016 LunarG, Inc.
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -06005 *
Karl Schultz1fa32a82016-02-04 11:33:21 -07006 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and/or associated documentation files (the "Materials"), to
8 * deal in the Materials without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Materials, and to permit persons to whom the Materials are
11 * furnished to do so, subject to the following conditions:
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060012 *
Karl Schultz1fa32a82016-02-04 11:33:21 -070013 * The above copyright notice(s) and this permission notice shall be included in
14 * all copies or substantial portions of the Materials.
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060015 *
Karl Schultz1fa32a82016-02-04 11:33:21 -070016 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060017 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Karl Schultz1fa32a82016-02-04 11:33:21 -070018 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 *
20 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE
23 * USE OR OTHER DEALINGS IN THE MATERIALS.
Chia-I Wu44e42362014-09-02 08:32:09 +080024 *
Courtney Goeltzenleuchter96cd7952015-10-30 11:14:30 -060025 * Author: Cody Northrop <cody@lunarg.com>
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060026 */
27
Cody Northropacfb0492015-03-17 15:55:58 -060028#ifndef ICD_SPV_H
29#define ICD_SPV_H
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060030
Chia-I Wu4115c892014-08-28 11:56:29 +080031#include <stdint.h>
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060032
Cody Northropacfb0492015-03-17 15:55:58 -060033#define ICD_SPV_MAGIC 0x07230203
34#define ICD_SPV_VERSION 99
Chia-I Wu4115c892014-08-28 11:56:29 +080035
Cody Northropacfb0492015-03-17 15:55:58 -060036struct icd_spv_header {
Chia-I Wu4115c892014-08-28 11:56:29 +080037 uint32_t magic;
38 uint32_t version;
Courtney Goeltzenleuchter52ec3362014-08-19 11:52:02 -060039 uint32_t gen_magic; // Generator's magic number
Courtney Goeltzenleuchterc6438002014-08-19 11:43:21 -060040};
41
Cody Northropacfb0492015-03-17 15:55:58 -060042#endif /* ICD_SPV_H */