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 "GrVkGpu.h" | 8 #include "GrVkGpu.h" |
9 | 9 |
10 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 if (!GrSampleCountToVkSampleCount(1, &vkSamples)) { | 699 if (!GrSampleCountToVkSampleCount(1, &vkSamples)) { |
700 return 0; | 700 return 0; |
701 } | 701 } |
702 | 702 |
703 const VkImageCreateInfo imageCreateInfo = { | 703 const VkImageCreateInfo imageCreateInfo = { |
704 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, // sType | 704 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, // sType |
705 NULL, // pNext | 705 NULL, // pNext |
706 0, // VkImageCreateFlags | 706 0, // VkImageCreateFlags |
707 VK_IMAGE_TYPE_2D, // VkImageType | 707 VK_IMAGE_TYPE_2D, // VkImageType |
708 pixelFormat, // VkFormat | 708 pixelFormat, // VkFormat |
709 { w, h, 1 }, // VkExtent3D | 709 { (uint32_t) w, (uint32_t) h, 1 }, // VkExtent3D |
710 1, // mipLevels | 710 1, // mipLevels |
711 1, // arrayLayers | 711 1, // arrayLayers |
712 vkSamples, // samples | 712 vkSamples, // samples |
713 imageTiling, // VkImageTiling | 713 imageTiling, // VkImageTiling |
714 usageFlags, // VkImageUsageFlags | 714 usageFlags, // VkImageUsageFlags |
715 VK_SHARING_MODE_EXCLUSIVE, // VkSharingMode | 715 VK_SHARING_MODE_EXCLUSIVE, // VkSharingMode |
716 0, // queueFamilyCount | 716 0, // queueFamilyCount |
717 0, // pQueueFamilyIndices | 717 0, // pQueueFamilyIndices |
718 initialLayout // initialLayout | 718 initialLayout // initialLayout |
719 }; | 719 }; |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 int set_a_break_pt_here = 9; | 1422 int set_a_break_pt_here = 9; |
1423 aglSwapBuffers(aglGetCurrentContext()); | 1423 aglSwapBuffers(aglGetCurrentContext()); |
1424 #elif defined(SK_BUILD_FOR_WIN32) | 1424 #elif defined(SK_BUILD_FOR_WIN32) |
1425 SwapBuf(); | 1425 SwapBuf(); |
1426 int set_a_break_pt_here = 9; | 1426 int set_a_break_pt_here = 9; |
1427 SwapBuf(); | 1427 SwapBuf(); |
1428 #endif | 1428 #endif |
1429 #endif | 1429 #endif |
1430 } | 1430 } |
1431 | 1431 |
OLD | NEW |