77 int locationIndex = 0;
80 location.
appendf(
"location = %d", locationIndex);
81 var.addLayoutQualifier(location.
c_str());
85 int numElements = var.isArray() ? var.getArrayCount() : 1;
87 locationIndex += elementSize * numElements;
95void GrVkVaryingHandler::onFinalize() {
static int sksltype_to_location_size(SkSLType type)
static void finalize_helper(GrVkVaryingHandler::VarArray &vars)
#define SK_ABORT(message,...)
@ kTextureExternalSampler
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2