1 // Copyright 2020 The SwiftShader Authors. All Rights Reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #include "libANGLE/renderer/vulkan/vk_headers.h" 16 17 // THIS FILE SHOULD BE DELETED IF VK_GOOGLE_sampler_filtering_precision IS EVER ADDED TO THE VULKAN 18 // HEADERS 19 #ifdef VK_GOOGLE_sampler_filtering_precision 20 # error \ 21 "VK_GOOGLE_sampler_filtering_precision is already defined in the Vulkan headers, you can delete this file" 22 #endif 23 24 static constexpr VkStructureType VK_STRUCTURE_TYPE_SAMPLER_FILTERING_PRECISION_GOOGLE = 25 static_cast<VkStructureType>(1000264000); 26 27 #define VK_GOOGLE_sampler_filtering_precisions 1 28 #define VK_GOOGLE_SAMPLER_FILTERING_PRECISION_SPEC_VERSION 1 29 #define VK_GOOGLE_SAMPLER_FILTERING_PRECISION_EXTENSION_NAME "VK_GOOGLE_sampler_filtering_precision" 30 31 const int TEXTURE_FILTERING_HINT_CHROMIUM = 0x8AF0; 32 33 typedef enum VkSamplerFilteringPrecisionModeGOOGLE 34 { 35 VK_SAMPLER_FILTERING_PRECISION_MODE_LOW_GOOGLE = 0, 36 VK_SAMPLER_FILTERING_PRECISION_MODE_HIGH_GOOGLE = 1, 37 VK_SAMPLER_FILTERING_PRECISION_MODE_BEGIN_RANGE_GOOGLE = 38 VK_SAMPLER_FILTERING_PRECISION_MODE_LOW_GOOGLE, 39 VK_SAMPLER_FILTERING_PRECISION_MODE_END_RANGE_GOOGLE = 40 VK_SAMPLER_FILTERING_PRECISION_MODE_HIGH_GOOGLE, 41 VK_SAMPLER_FILTERING_PRECISION_MODE_RANGE_SIZE_GOOGLE = 42 (VK_SAMPLER_FILTERING_PRECISION_MODE_HIGH_GOOGLE - 43 VK_SAMPLER_FILTERING_PRECISION_MODE_LOW_GOOGLE + 1), 44 VK_SAMPLER_FILTERING_PRECISION_MODE_MAX_ENUM_GOOGLE = 0x7FFFFFFF 45 } VkSamplerFilteringPrecisionModeGOOGLE; 46 47 typedef struct VkSamplerFilteringPrecisionGOOGLE 48 { 49 VkStructureType sType; 50 const void *pNext; 51 VkSamplerFilteringPrecisionModeGOOGLE samplerFilteringPrecisionMode; 52 } VkSamplerFilteringPrecisionGOOGLE; 53