#include "src/tint/lang/wgsl/sem/function.h"
#include "src/tint/lang/core/type/depth_texture.h"
#include "src/tint/lang/core/type/external_texture.h"
#include "src/tint/lang/core/type/multisampled_texture.h"
#include "src/tint/lang/core/type/sampled_texture.h"
#include "src/tint/lang/core/type/storage_texture.h"
#include "src/tint/lang/wgsl/ast/function.h"
#include "src/tint/lang/wgsl/ast/identifier.h"
#include "src/tint/lang/wgsl/ast/must_use_attribute.h"
#include "src/tint/lang/wgsl/sem/variable.h"
#include "src/tint/utils/containers/transform.h"
TINT_INSTANTIATE_TYPEINFO(…);
namespace tint::sem {
Function::Function(const ast::Function* declaration)
: … { … }
Function::~Function() = default;
std::vector<std::pair<const Variable*, const ast::LocationAttribute*>>
Function::TransitivelyReferencedLocationVariables() const { … }
void Function::AddTransitivelyReferencedGlobal(const sem::GlobalVariable* global) { … }
Function::VariableBindings Function::TransitivelyReferencedUniformVariables() const { … }
Function::VariableBindings Function::TransitivelyReferencedStorageBufferVariables() const { … }
std::vector<std::pair<const Variable*, const ast::BuiltinAttribute*>>
Function::TransitivelyReferencedBuiltinVariables() const { … }
Function::VariableBindings Function::TransitivelyReferencedSamplerVariables() const { … }
Function::VariableBindings Function::TransitivelyReferencedComparisonSamplerVariables() const { … }
Function::VariableBindings Function::TransitivelyReferencedSampledTextureVariables() const { … }
Function::VariableBindings Function::TransitivelyReferencedMultisampledTextureVariables() const { … }
Function::VariableBindings Function::TransitivelyReferencedVariablesOfType(
const tint::TypeInfo* type) const { … }
bool Function::HasAncestorEntryPoint(Symbol symbol) const { … }
Function::VariableBindings Function::TransitivelyReferencedSamplerVariablesImpl(
core::type::SamplerKind kind) const { … }
Function::VariableBindings Function::TransitivelyReferencedSampledTextureVariablesImpl(
bool multisampled) const { … }
void Function::SetDiagnosticSeverity(wgsl::DiagnosticRule rule, wgsl::DiagnosticSeverity severity) { … }
}