| #ifndef _VKVALIDATOROPTIONS_HPP |
| #define _VKVALIDATOROPTIONS_HPP |
| /*------------------------------------------------------------------------- |
| * Vulkan CTS Framework |
| * -------------------- |
| * |
| * Copyright (c) 2018 Google LLC |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| * |
| *//*! |
| * \file |
| * \brief SPIR-V validator options |
| *//*--------------------------------------------------------------------*/ |
| |
| #include "vkDefs.hpp" |
| |
| namespace vk |
| { |
| |
| struct SpirvValidatorOptions |
| { |
| enum BlockLayoutRules |
| { |
| // The default for the target Vulkan environment. |
| kDefaultBlockLayout, |
| // Don't check block layout |
| kNoneBlockLayout, |
| // VK_KHR_relaxed_block_layout |
| kRelaxedBlockLayout, |
| // VK_EXT_uniform_buffer_standard_layout |
| kUniformStandardLayout, |
| // VK_EXT_scalar_block_layout |
| kScalarBlockLayout |
| }; |
| |
| SpirvValidatorOptions(deUint32 the_vulkan_version = VK_MAKE_VERSION(1, 0, 0), BlockLayoutRules the_layout = kDefaultBlockLayout, bool allowSpirv14 = false) |
| : vulkanVersion(the_vulkan_version), blockLayout(the_layout), supports_VK_KHR_spirv_1_4(allowSpirv14) {} |
| |
| // The target Vulkan version. This determines the SPIR-V environment rules to |
| // be checked. The bit pattern is as produced by VK_MAKE_VERSION. |
| deUint32 vulkanVersion; |
| |
| // The block layout rules to enforce. |
| BlockLayoutRules blockLayout; |
| |
| // Does the device support VK_KHR_spirv_1_4? |
| // (Camelcase would just be wrong here.) |
| bool supports_VK_KHR_spirv_1_4; |
| }; |
| |
| } // namespace vk |
| |
| #endif // _VKVALIDATOROPTIONS_HPP |