Package net.minecraft.client.shader
Class ShaderUniform
java.lang.Object
net.minecraft.client.shader.ShaderDefault
net.minecraft.client.shader.ShaderUniform
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private boolean
private final FloatBuffer
private final IntBuffer
private int
private static final org.apache.logging.log4j.Logger
private final String
private final IShaderManager
private final int
-
Constructor Summary
ConstructorDescriptionShaderUniform
(String p_i45092_1_, int p_i45092_2_, int p_i45092_3_, IShaderManager p_i45092_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getName()
static int
getTypeFromString
(String p_148085_0_) static int
glGetAttribLocation
(int p_227807_0_, CharSequence p_227807_1_) static int
glGetUniformLocation
(int p_227806_0_, CharSequence p_227806_1_) private void
void
set
(float p_148090_1_) void
set
(float[] p_148097_1_) void
set
(float p_148087_1_, float p_148087_2_) void
set
(float p_148095_1_, float p_148095_2_, float p_148095_3_) void
set
(float p_148081_1_, float p_148081_2_, float p_148081_3_, float p_148081_4_) void
void
setLocation
(int p_148084_1_) void
setSafe
(float p_148092_1_, float p_148092_2_, float p_148092_3_, float p_148092_4_) void
setSafe
(int p_148083_1_, int p_148083_2_, int p_148083_3_, int p_148083_4_) void
upload()
private void
private void
private void
static void
uploadInteger
(int p_227805_0_, int p_227805_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
location
private int location -
count
private final int count -
type
private final int type -
intValues
-
floatValues
-
name
-
dirty
private boolean dirty -
parent
-
-
Constructor Details
-
ShaderUniform
public ShaderUniform(String p_i45092_1_, int p_i45092_2_, int p_i45092_3_, IShaderManager p_i45092_4_)
-
-
Method Details
-
glGetUniformLocation
-
uploadInteger
public static void uploadInteger(int p_227805_0_, int p_227805_1_) -
glGetAttribLocation
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
markDirty
private void markDirty() -
getTypeFromString
-
setLocation
public void setLocation(int p_148084_1_) -
getName
-
set
public void set(float p_148090_1_) - Overrides:
set
in classShaderDefault
-
set
public void set(float p_148087_1_, float p_148087_2_) - Overrides:
set
in classShaderDefault
-
set
public void set(float p_148095_1_, float p_148095_2_, float p_148095_3_) - Overrides:
set
in classShaderDefault
-
set
public void set(float p_148081_1_, float p_148081_2_, float p_148081_3_, float p_148081_4_) - Overrides:
set
in classShaderDefault
-
setSafe
public void setSafe(float p_148092_1_, float p_148092_2_, float p_148092_3_, float p_148092_4_) - Overrides:
setSafe
in classShaderDefault
-
setSafe
public void setSafe(int p_148083_1_, int p_148083_2_, int p_148083_3_, int p_148083_4_) - Overrides:
setSafe
in classShaderDefault
-
set
public void set(float[] p_148097_1_) - Overrides:
set
in classShaderDefault
-
set
- Overrides:
set
in classShaderDefault
-
upload
public void upload() -
uploadAsInteger
private void uploadAsInteger() -
uploadAsFloat
private void uploadAsFloat() -
uploadAsMatrix
private void uploadAsMatrix()
-