83 int locationIndex = 0;
86 location.
appendf(
"location = %d", locationIndex);
87 var.addLayoutQualifier(location.
c_str());
91 int numElements = var.isArray() ? var.getArrayCount() : 1;
93 locationIndex += elementSize * numElements;
98void GrSPIRVVaryingHandler::onFinalize() {
static int sksltype_to_location_size(SkSLType type)
static void finalize_helper(GrSPIRVVaryingHandler::VarArray &vars)
#define SK_ABORT(message,...)
static const int kSkSLTypeCount
@ kTextureExternalSampler
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2