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 ResourceLocationstatic final GlShaderModuleprivate static final intprivate intprivate final ShaderType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static GlShaderModulecompile(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:
closein interfaceAutoCloseable
-
getId
-
getShaderId
public int getShaderId() -
getDebugLabel
-