blob: 4e7eddf0f6c328122518058dbcdec93fb12ee4ff [file] [log] [blame]
Chris Forbes6b2ead62015-04-17 10:13:28 +12001/*
2 * Vulkan
3 *
4 * Copyright (C) 2014 LunarG, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
Tobin Ehlis0c6f9ee2015-07-03 09:42:57 -060024#include "vk_layer.h"
Courtney Goeltzenleuchterf579fa62015-06-10 17:39:03 -060025#include "vk_debug_report_lunarg.h"
Chris Forbes6b2ead62015-04-17 10:13:28 +120026
27
28/* Shader checker error codes */
29typedef enum _SHADER_CHECKER_ERROR
30{
31 SHADER_CHECKER_NONE,
32 SHADER_CHECKER_FS_MIXED_BROADCAST, /* FS writes broadcast output AND custom outputs */
33 SHADER_CHECKER_INTERFACE_TYPE_MISMATCH, /* Type mismatch between shader stages or shader and pipeline */
34 SHADER_CHECKER_OUTPUT_NOT_CONSUMED, /* Entry appears in output interface, but missing in input */
35 SHADER_CHECKER_INPUT_NOT_PRODUCED, /* Entry appears in input interface, but missing in output */
36 SHADER_CHECKER_NON_SPIRV_SHADER, /* Shader image is not SPIR-V */
37 SHADER_CHECKER_INCONSISTENT_SPIRV, /* General inconsistency within a SPIR-V module */
38 SHADER_CHECKER_UNKNOWN_STAGE, /* Stage is not supported by analysis */
Chris Forbes280ba2c2015-06-12 11:16:41 +120039 SHADER_CHECKER_INCONSISTENT_VI, /* VI state contains conflicting binding or attrib descriptions */
Chris Forbes6b2ead62015-04-17 10:13:28 +120040} SHADER_CHECKER_ERROR;