Package com.mojang.blaze3d.shaders
Class CompiledShader
java.lang.Object
com.mojang.blaze3d.shaders.CompiledShader
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate static final intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static CompiledShadercompile(ResourceLocation pShaderId, CompiledShader.Type pType, String pSource) getId()int
-
Field Details
-
NOT_ALLOCATED
private static final int NOT_ALLOCATED- See Also:
-
id
-
shaderId
private int shaderId
-
-
Constructor Details
-
CompiledShader
-
-
Method Details
-
compile
public static CompiledShader compile(ResourceLocation pShaderId, CompiledShader.Type pType, String pSource) throws ShaderManager.CompilationException -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getId
-
getShaderId
public int getShaderId()
-