Package com.mojang.blaze3d.opengl
Class GlShaderModule
java.lang.Object
com.mojang.blaze3d.opengl.GlShaderModule
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocation
static final GlShaderModule
private static final int
private int
private final ShaderType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static GlShaderModule
compile
(ResourceLocation pId, ShaderType pType, String pSource) getId()
int
-
Field Details
-
NOT_ALLOCATED
private static final int NOT_ALLOCATED- See Also:
-
INVALID_SHADER
-
id
-
shaderId
private int shaderId -
type
-
-
Constructor Details
-
GlShaderModule
-
-
Method Details
-
compile
public static GlShaderModule compile(ResourceLocation pId, ShaderType pType, String pSource) throws ShaderManager.CompilationException -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getId
-
getShaderId
public int getShaderId() -
getDebugLabel
-