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

Side by Side Diff: src/gpu/vk/GrVkVaryingHandler.cpp

Issue 2363773006: Add command buffer submits before copy calls in vulkan. (Closed)
Patch Set: change submit check to a cap Created 4 years, 2 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/GrVkGpu.cpp ('k') | no next file » | 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 2016 Google Inc. 2 * Copyright 2016 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 "GrVkVaryingHandler.h" 8 #include "GrVkVaryingHandler.h"
9 9
10 /** Returns the number of locations take up by a given GrSLType. We assume that all 10 /** Returns the number of locations take up by a given GrSLType. We assume that all
11 scalar values are 32 bits. */ 11 scalar values are 32 bits. */
12 static inline int grsltype_to_location_size(GrSLType type) { 12 static inline int grsltype_to_location_size(GrSLType type) {
13 static const uint32_t kSizes[] = { 13 static const uint32_t kSizes[] = {
14 0, // kVoid_GrSLType 14 0, // kVoid_GrSLType
15 1, // kFloat_GrSLType 15 1, // kFloat_GrSLType
16 1, // kVec2f_GrSLType 16 1, // kVec2f_GrSLType
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 void GrVkVaryingHandler::onFinalize() { 76 void GrVkVaryingHandler::onFinalize() {
77 finalize_helper(fVertexInputs); 77 finalize_helper(fVertexInputs);
78 finalize_helper(fVertexOutputs); 78 finalize_helper(fVertexOutputs);
79 finalize_helper(fGeomInputs); 79 finalize_helper(fGeomInputs);
80 finalize_helper(fGeomOutputs); 80 finalize_helper(fGeomOutputs);
81 finalize_helper(fFragInputs); 81 finalize_helper(fFragInputs);
82 finalize_helper(fFragOutputs); 82 finalize_helper(fFragOutputs);
83 } 83 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698