Package icyllis.arc3d.opengl

# Class GLSampler

java.lang.Object
icyllis.arc3d.engine.Resource
icyllis.arc3d.engine.Sampler
icyllis.arc3d.opengl.GLSampler

All Implemented Interfaces:
  `RefCounted`

public final class GLSampler extends Sampler
Represents OpenGL sampler objects.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static @SharedPtr GLSampler`
  `create(Context context, SamplerDesc desc)`
  `void`
  `discard()`
  `int`
  `getHandle()`
  `protected void`
  `onRelease()`
  Subclass should override this method to free GPU resources in the backend API.

  ### Methods inherited from class icyllis.arc3d.engine.Resource

  `getContext, getDevice, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isWrapped, onSetLabel, ref, refCommandBuffer, setKey, setLabel, setNonCacheable, unref, unrefCommandBuffer`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### create

    @Nullable @SharedPtr public static @SharedPtr GLSampler create(Context context, SamplerDesc desc)

  - ### onRelease

    protected void onRelease()
    Description copied from class: `Resource`
    Subclass should override this method to free GPU resources in the backend API.
    Specified by:
      `onRelease` in class `Resource`

  - ### discard

    public void discard()

  - ### getHandle

    public int getHandle()