Interface ShaderCompiler.ShaderProvider

Enclosing interface:
ShaderCompiler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ShaderCompiler.ShaderProvider
Provides shader sources for the compiler.
  • Method Summary

    Modifier and Type
    Method
    Description
    getShader(net.minecraft.resources.ResourceLocation location)
    Reads a shader source by location.
  • Method Details

    • getShader

      VeilShaderSource getShader(net.minecraft.resources.ResourceLocation location) throws FileNotFoundException
      Reads a shader source by location.
      Parameters:
      location - The location of the shader to retrieve
      Returns:
      The shader source found
      Throws:
      FileNotFoundException - If the shader source does not exist