mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Have TypesBuilder::sampler() return ast::Sampler
Bug: tint:724 Change-Id: Ifdba69a24d65e2f874ea8bdb3984d36a8cfa2bd7 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51663 Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
55ecfc4a24
commit
b966265f5a
@@ -751,16 +751,14 @@ class ProgramBuilder {
|
||||
/// @param kind the kind of sampler
|
||||
/// @returns the sampler
|
||||
typ::Sampler sampler(ast::SamplerKind kind) const {
|
||||
return {builder->create<ast::Sampler>(kind),
|
||||
builder->create<sem::Sampler>(kind)};
|
||||
return {builder->create<ast::Sampler>(kind)};
|
||||
}
|
||||
|
||||
/// @param source the Source of the node
|
||||
/// @param kind the kind of sampler
|
||||
/// @returns the sampler
|
||||
typ::Sampler sampler(const Source& source, ast::SamplerKind kind) const {
|
||||
return {builder->create<ast::Sampler>(source, kind),
|
||||
builder->create<sem::Sampler>(kind)};
|
||||
return {builder->create<ast::Sampler>(source, kind)};
|
||||
}
|
||||
|
||||
/// @param dims the dimensionality of the texture
|
||||
|
||||
Reference in New Issue
Block a user