chromium/third_party/skia/src/gpu/graphite/UniformManager.cpp

/*
 * Copyright 2021 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/gpu/graphite/UniformManager.h"

#include "src/gpu/graphite/PipelineData.h"

// ensure that these types are the sizes the uniform data is expecting
static_assert;
static_assert;
static_assert;

namespace skgpu::graphite {

int UniformOffsetCalculator::advanceOffset(SkSLType type, int count) {}

int UniformOffsetCalculator::advanceStruct(const UniformOffsetCalculator& substruct, int count) {}

//////////////////////////////////////////////////////////////////////////////

void UniformManager::resetWithNewLayout(Layout layout) {}

static std::pair<SkSLType, int> adjust_for_matrix_type(SkSLType type, int count) {}

void UniformManager::write(const Uniform& u, const void* data) {}

#if defined(SK_DEBUG)

bool UniformManager::checkBeginStruct(int baseAlignment) {}

bool UniformManager::checkEndStruct() {}

bool UniformManager::checkExpected(const void* dst, SkSLType type, int count) {}

bool UniformManager::isReset() const {}

void UniformManager::setExpectedUniforms(SkSpan<const Uniform> expected, bool isSubstruct) {}

void UniformManager::doneWithExpectedUniforms() {}

#endif // SK_DEBUG

} // namespace skgpu::graphite