A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://api.flutter.dev/flutter/dart-ui/FragmentShader/setImageSampler.html below:

setImageSampler method - FragmentShader class - dart:ui library

setImageSampler method

void setImageSampler(
  1. int index,
  2. Image image
)

Sets the sampler uniform at index to image.

The index provided to setImageSampler is the index of the sampler uniform defined in the fragment program, excluding all non-sampler uniforms.

All the sampler uniforms that a shader expects must be provided or the results will be undefined.

Implementation
void setImageSampler(int index, Image image) {
  assert(!debugDisposed, 'Tried to access uniforms on a disposed Shader: $this');
  assert(!image.debugDisposed, 'Image has been disposed');
  _setImageSampler(index, image._image);
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4