Interface ShaderTextureSource

All Known Implementing Classes:
FramebufferSource, LocationSource

public sealed interface ShaderTextureSource permits LocationSource, FramebufferSource
Source for shader textures. This allows resource location textures as well as other special types.
  • Field Details

  • Method Details

    • getId

      int getId(ShaderTextureSource.Context context)
      Retrieves the id of this texture based on context.
      Parameters:
      context - The context to use
      Returns:
      The id of the texture to bind
    • filter

      @Nullable @Nullable TextureFilter filter()
      Returns:
      The filtering this texture should use or null for the texture default
    • type

      Returns:
      The type of shader texture this is