Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(948)

Side by Side Diff: src/gpu/vk/GrVkUtil.h

Issue 1970293002: Support allowSRGBInputs on Vulkan (via secondary texture views) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: default case for switch Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkTexture.cpp ('k') | src/gpu/vk/GrVkUtil.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 GrVkUtil_DEFINED 8 #ifndef GrVkUtil_DEFINED
9 #define GrVkUtil_DEFINED 9 #define GrVkUtil_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 /** 28 /**
29 * Returns the vulkan texture format for the given GrPixelConfig 29 * Returns the vulkan texture format for the given GrPixelConfig
30 */ 30 */
31 bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format); 31 bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format);
32 32
33 /** 33 /**
34 * Returns the GrPixelConfig for the given vulkan texture format 34 * Returns the GrPixelConfig for the given vulkan texture format
35 */ 35 */
36 bool GrVkFormatToPixelConfig(VkFormat format, GrPixelConfig* config); 36 bool GrVkFormatToPixelConfig(VkFormat format, GrPixelConfig* config);
37 37
38 /**
39 * Returns true if the given vulkan texture format is sRGB encoded.
40 * Also provides the non-sRGB version, if there is one.
41 */
42 bool GrVkFormatIsSRGB(VkFormat format, VkFormat* linearFormat);
43
38 bool GrSampleCountToVkSampleCount(uint32_t samples, VkSampleCountFlagBits* vkSam ples); 44 bool GrSampleCountToVkSampleCount(uint32_t samples, VkSampleCountFlagBits* vkSam ples);
39 45
40 #endif 46 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkTexture.cpp ('k') | src/gpu/vk/GrVkUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698