Class ShaderPool

All Implemented Interfaces:
Destructible

public final class ShaderPool extends TextAssetPool<Shader>
  • Constructor Details

    • ShaderPool

      public ShaderPool()
  • Method Details

    • loadVertexShader

      public Shader loadVertexShader(String path)
    • loadFragmentShader

      public Shader loadFragmentShader(String path)
    • loadComputeShader

      public Shader loadComputeShader(String path)
    • loadGeometryShader

      public Shader loadGeometryShader(String path)
    • load

      public Shader load(Shader.Type type, String path)
    • load

      public Shader load(int type, String path)
    • preprocess

      protected String preprocess(StringBuilder stringBuilder)
      Description copied from class: TextAssetPool
      Preprocesses the content of the text file.
      Overrides:
      preprocess in class TextAssetPool<Shader>
      Parameters:
      stringBuilder - The string builder containing the content of the text file.
      Returns:
      The preprocessed content of the text file.
    • parse

      protected Shader parse(String path, String content)
      Description copied from class: TextAssetPool
      Parses the text file as an asset.
      Specified by:
      parse in class TextAssetPool<Shader>
      Parameters:
      path - The path of the text file. Mostly used for debugging purposes.
      content - The content of the text file
      Returns:
      The new asset