| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |