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 "GrVkCaps.h" | 8 #include "GrVkCaps.h" |
9 | 9 |
10 #include "GrVkUtil.h" | 10 #include "GrVkUtil.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 fNPOTTextureTileSupport = true; // always available in Vulkan | 29 fNPOTTextureTileSupport = true; // always available in Vulkan |
30 fTwoSidedStencilSupport = true; // always available in Vulkan | 30 fTwoSidedStencilSupport = true; // always available in Vulkan |
31 fStencilWrapOpsSupport = true; // always available in Vulkan | 31 fStencilWrapOpsSupport = true; // always available in Vulkan |
32 fDiscardRenderTargetSupport = true; | 32 fDiscardRenderTargetSupport = true; |
33 fReuseScratchTextures = true; //TODO: figure this out | 33 fReuseScratchTextures = true; //TODO: figure this out |
34 fGpuTracingSupport = false; //TODO: figure this out | 34 fGpuTracingSupport = false; //TODO: figure this out |
35 fCompressedTexSubImageSupport = false; //TODO: figure this out | 35 fCompressedTexSubImageSupport = false; //TODO: figure this out |
36 fOversizedStencilSupport = false; //TODO: figure this out | 36 fOversizedStencilSupport = false; //TODO: figure this out |
37 | 37 |
38 fUseDrawInsteadOfClear = false; | 38 fUseDrawInsteadOfClear = false; |
| 39 fFenceSyncSupport = true; // always available in Vulkan |
39 | 40 |
40 fMapBufferFlags = kNone_MapFlags; //TODO: figure this out | 41 fMapBufferFlags = kNone_MapFlags; //TODO: figure this out |
41 fBufferMapThreshold = SK_MaxS32; //TODO: figure this out | 42 fBufferMapThreshold = SK_MaxS32; //TODO: figure this out |
42 | 43 |
43 fMaxRenderTargetSize = 4096; // minimum required by spec | 44 fMaxRenderTargetSize = 4096; // minimum required by spec |
44 fMaxTextureSize = 4096; // minimum required by spec | 45 fMaxTextureSize = 4096; // minimum required by spec |
45 fMaxColorSampleCount = 4; // minimum required by spec | 46 fMaxColorSampleCount = 4; // minimum required by spec |
46 fMaxStencilSampleCount = 4; // minimum required by spec | 47 fMaxStencilSampleCount = 4; // minimum required by spec |
47 | 48 |
48 fShaderCaps.reset(new GrGLSLCaps(contextOptions)); | 49 fShaderCaps.reset(new GrGLSLCaps(contextOptions)); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 263 |
263 void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface, | 264 void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface, |
264 VkPhysicalDevice physDev, | 265 VkPhysicalDevice physDev, |
265 VkFormat format) { | 266 VkFormat format) { |
266 VkFormatProperties props; | 267 VkFormatProperties props; |
267 memset(&props, 0, sizeof(VkFormatProperties)); | 268 memset(&props, 0, sizeof(VkFormatProperties)); |
268 GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &pr
ops)); | 269 GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &pr
ops)); |
269 InitConfigFlags(props.linearTilingFeatures, &fLinearFlags); | 270 InitConfigFlags(props.linearTilingFeatures, &fLinearFlags); |
270 InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags); | 271 InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags); |
271 } | 272 } |
OLD | NEW |