mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 22:17:51 +00:00
Program: Remove deprecated function methods
Fixup all usages Bug: tint:390 Change-Id: I949235908e50702d6c8b2e7e2299594879653e01 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38547 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -41,7 +41,7 @@ EmitVertexPointSize::~EmitVertexPointSize() = default;
|
||||
Transform::Output EmitVertexPointSize::Run(const Program* in) {
|
||||
Output out;
|
||||
|
||||
if (!in->Functions().HasStage(ast::PipelineStage::kVertex)) {
|
||||
if (!in->AST().Functions().HasStage(ast::PipelineStage::kVertex)) {
|
||||
// If the module doesn't have any vertex stages, then there's nothing to do.
|
||||
out.program = in->Clone();
|
||||
return out;
|
||||
|
||||
@@ -85,8 +85,8 @@ Transform::Output VertexPulling::Run(const Program* in) {
|
||||
}
|
||||
|
||||
// Find entry point
|
||||
auto* func = in->Functions().Find(in->GetSymbol(cfg.entry_point_name),
|
||||
ast::PipelineStage::kVertex);
|
||||
auto* func = in->AST().Functions().Find(in->GetSymbol(cfg.entry_point_name),
|
||||
ast::PipelineStage::kVertex);
|
||||
if (func == nullptr) {
|
||||
diag::Diagnostic err;
|
||||
err.severity = diag::Severity::Error;
|
||||
|
||||
Reference in New Issue
Block a user