mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[impellerc] remove coffset usage (flutter/engine#39199)
* [impellerc] remove coffset usage * ++
This commit is contained in:
parent
e31df55438
commit
b8974b5199
@ -476,9 +476,8 @@ std::string CompilerSkSL::to_function_args(const TextureFunctionArguments& args,
|
||||
std::string glsl_args = CompilerGLSL::to_function_args(args, p_forward);
|
||||
// SkSL only supports coordinates. All other arguments to texture are
|
||||
// unsupported and will generate invalid SkSL.
|
||||
if (args.grad_x || args.grad_y || args.lod || args.coffset || args.offset ||
|
||||
args.sample || args.min_lod || args.sparse_texel || args.bias ||
|
||||
args.component) {
|
||||
if (args.grad_x || args.grad_y || args.lod || args.offset || args.sample ||
|
||||
args.min_lod || args.sparse_texel || args.bias || args.component) {
|
||||
FLUTTER_CROSS_THROW(
|
||||
"Only sampler and position arguments are supported in texture() "
|
||||
"calls.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user