OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrVkUtil.h" | 8 #include "GrVkUtil.h" |
9 | 9 |
10 bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format) { | 10 bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 case 32: | 84 case 32: |
85 *vkSamples = VK_SAMPLE_COUNT_2_BIT; | 85 *vkSamples = VK_SAMPLE_COUNT_2_BIT; |
86 return true; | 86 return true; |
87 case 64: | 87 case 64: |
88 *vkSamples = VK_SAMPLE_COUNT_2_BIT; | 88 *vkSamples = VK_SAMPLE_COUNT_2_BIT; |
89 return true; | 89 return true; |
90 default: | 90 default: |
91 return false; | 91 return false; |
92 } | 92 } |
93 } | 93 } |
94 | |
OLD | NEW |