rhodonite
    Preparing search index...

    Class Sampler

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

    Index

    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

    • Internal

      Destroys the sampler resource and resets its internal state. This invalidates the sampler resource UID, allowing it to be recreated. Called from Engine.destroy() or texture cleanup

      Returns void