Represents a texture sampler that defines how textures are sampled during rendering. A sampler encapsulates filtering and wrapping parameters for texture sampling operations.

Constructors

Accessors

  • get _samplerResourceUid(): number
  • Internal

    Gets the internal sampler resource handle used by the graphics API.

    Returns number

    The sampler resource UID

  • get created(): boolean
  • Checks whether the sampler resource has been created.

    Returns boolean

    True if the sampler has been created, false otherwise

Methods

  • Creates the underlying graphics API sampler resource. This method must be called before the sampler can be used for rendering.

    Returns void