Lines Matching refs:uni
332 const auto& uni = info->fUniforms[i];
333 float* vals = data + uni.fSlot;
336 if (uni.fName == "dt" || uni.fName.starts_with("effect.")) {
341 if (uni.fName == "mouse_pos" &&
342 uni.fKind == SkSL::Type::NumberKind::kFloat &&
343 uni.fRows == 2 && uni.fColumns == 1) {
349 if (uni.fKind == SkSL::Type::NumberKind::kBoolean) {
350 for (int c = 0; c < uni.fColumns; ++c, vals += uni.fRows) {
351 for (int r = 0; r < uni.fRows; ++r, ++vals) {
352 ImGui::PushID(c*uni.fRows + r);
356 ImGui::CheckboxFlags(r == uni.fRows - 1 ? uni.fName.c_str()
367 switch (uni.fKind) {
374 for (int c = 0; c < uni.fColumns; ++c, vals += uni.fRows) {
376 ImGui::DragScalarN(uni.fName.c_str(), dataType, vals, uni.fRows, 1.0f);