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 #ifndef GrVkCaps_DEFINED | 8 #ifndef GrVkCaps_DEFINED |
9 #define GrVkCaps_DEFINED | 9 #define GrVkCaps_DEFINED |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 */ | 79 */ |
80 const StencilFormat& preferedStencilFormat() const { | 80 const StencilFormat& preferedStencilFormat() const { |
81 return fPreferedStencilFormat; | 81 return fPreferedStencilFormat; |
82 } | 82 } |
83 | 83 |
84 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC
aps.get()); } | 84 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC
aps.get()); } |
85 | 85 |
86 private: | 86 private: |
87 enum VkVendor { | 87 enum VkVendor { |
88 kQualcomm_VkVendor = 20803, | 88 kQualcomm_VkVendor = 20803, |
89 kNvidia_VkVendor = 4318, | |
90 }; | 89 }; |
91 | 90 |
92 void init(const GrContextOptions& contextOptions, const GrVkInterface* vkInt
erface, | 91 void init(const GrContextOptions& contextOptions, const GrVkInterface* vkInt
erface, |
93 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extension
Flags); | 92 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extension
Flags); |
94 void initGrCaps(const VkPhysicalDeviceProperties&, | 93 void initGrCaps(const VkPhysicalDeviceProperties&, |
95 const VkPhysicalDeviceMemoryProperties&, | 94 const VkPhysicalDeviceMemoryProperties&, |
96 uint32_t featureFlags); | 95 uint32_t featureFlags); |
97 void initGLSLCaps(const VkPhysicalDeviceProperties&, uint32_t featureFlags); | 96 void initGLSLCaps(const VkPhysicalDeviceProperties&, uint32_t featureFlags); |
98 void initSampleCount(const VkPhysicalDeviceProperties& properties); | 97 void initSampleCount(const VkPhysicalDeviceProperties& properties); |
99 | 98 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well. | 132 // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well. |
134 bool fAllowInitializationErrorOnTearDown; | 133 bool fAllowInitializationErrorOnTearDown; |
135 | 134 |
136 // Check whether we support using draws for copies. | 135 // Check whether we support using draws for copies. |
137 bool fSupportsCopiesAsDraws; | 136 bool fSupportsCopiesAsDraws; |
138 | 137 |
139 typedef GrCaps INHERITED; | 138 typedef GrCaps INHERITED; |
140 }; | 139 }; |
141 | 140 |
142 #endif | 141 #endif |
OLD | NEW |