Package com.mojang.blaze3d.shaders
Class Uniform
java.lang.Object
com.mojang.blaze3d.shaders.AbstractUniform
com.mojang.blaze3d.shaders.Uniform
- 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.slf4j.Logger
private final String
private final Shader
private static final boolean
private final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getCount()
int
getName()
int
getType()
static int
getTypeFromString
(String p_85630_) static void
glBindAttribLocation
(int p_166711_, int p_166712_, CharSequence p_166713_) static int
glGetAttribLocation
(int p_85640_, CharSequence p_85641_) static int
glGetUniformLocation
(int p_85625_, CharSequence p_85626_) private void
final void
set
(float p_85601_) final void
set
(float[] p_85632_) final void
set
(float p_85603_, float p_85604_) final void
set
(float p_85606_, float p_85607_, float p_85608_) final void
set
(float p_85610_, float p_85611_, float p_85612_, float p_85613_) final void
set
(int p_166699_) final void
set
(int p_166701_, float p_166702_) final void
set
(int p_166704_, int p_166705_) final void
set
(int p_166707_, int p_166708_, int p_166709_) final void
set
(int p_166748_, int p_166749_, int p_166750_, int p_166751_) final void
final void
final void
final void
void
setLocation
(int p_85615_) final void
setMat2x2
(float p_166754_, float p_166755_, float p_166756_, float p_166757_) final void
setMat2x3
(float p_166643_, float p_166644_, float p_166645_, float p_166646_, float p_166647_, float p_166648_) final void
setMat2x4
(float p_166650_, float p_166651_, float p_166652_, float p_166653_, float p_166654_, float p_166655_, float p_166656_, float p_166657_) final void
setMat3x2
(float p_166719_, float p_166720_, float p_166721_, float p_166722_, float p_166723_, float p_166724_) final void
setMat3x3
(float p_166659_, float p_166660_, float p_166661_, float p_166662_, float p_166663_, float p_166664_, float p_166665_, float p_166666_, float p_166667_) final void
setMat3x4
(float p_166669_, float p_166670_, float p_166671_, float p_166672_, float p_166673_, float p_166674_, float p_166675_, float p_166676_, float p_166677_, float p_166678_, float p_166679_, float p_166680_) final void
setMat4x2
(float p_166726_, float p_166727_, float p_166728_, float p_166729_, float p_166730_, float p_166731_, float p_166732_, float p_166733_) final void
setMat4x3
(float p_166735_, float p_166736_, float p_166737_, float p_166738_, float p_166739_, float p_166740_, float p_166741_, float p_166742_, float p_166743_, float p_166744_, float p_166745_, float p_166746_) final void
setMat4x4
(float p_166682_, float p_166683_, float p_166684_, float p_166685_, float p_166686_, float p_166687_, float p_166688_, float p_166689_, float p_166690_, float p_166691_, float p_166692_, float p_166693_, float p_166694_, float p_166695_, float p_166696_, float p_166697_) final void
setSafe
(float p_85635_, float p_85636_, float p_85637_, float p_85638_) final void
setSafe
(int p_85620_, int p_85621_, int p_85622_, int p_85623_) void
upload()
private void
private void
private void
static void
uploadInteger
(int p_85617_, int p_85618_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
UT_INT1
public static final int UT_INT1- See Also:
-
UT_INT2
public static final int UT_INT2- See Also:
-
UT_INT3
public static final int UT_INT3- See Also:
-
UT_INT4
public static final int UT_INT4- See Also:
-
UT_FLOAT1
public static final int UT_FLOAT1- See Also:
-
UT_FLOAT2
public static final int UT_FLOAT2- See Also:
-
UT_FLOAT3
public static final int UT_FLOAT3- See Also:
-
UT_FLOAT4
public static final int UT_FLOAT4- See Also:
-
UT_MAT2
public static final int UT_MAT2- See Also:
-
UT_MAT3
public static final int UT_MAT3- See Also:
-
UT_MAT4
public static final int UT_MAT4- See Also:
-
TRANSPOSE_MATRICIES
private static final boolean TRANSPOSE_MATRICIES- See Also:
-
location
private int location -
count
private final int count -
type
private final int type -
intValues
-
floatValues
-
name
-
dirty
private boolean dirty -
parent
-
-
Constructor Details
-
Uniform
-
-
Method Details
-
glGetUniformLocation
-
uploadInteger
public static void uploadInteger(int p_85617_, int p_85618_) -
glGetAttribLocation
-
glBindAttribLocation
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
markDirty
private void markDirty() -
getTypeFromString
-
setLocation
public void setLocation(int p_85615_) -
getName
-
set
public final void set(float p_85601_) - Overrides:
set
in classAbstractUniform
-
set
public final void set(float p_85603_, float p_85604_) - Overrides:
set
in classAbstractUniform
-
set
public final void set(int p_166701_, float p_166702_) -
set
public final void set(float p_85606_, float p_85607_, float p_85608_) - Overrides:
set
in classAbstractUniform
-
set
- Overrides:
set
in classAbstractUniform
-
set
public final void set(float p_85610_, float p_85611_, float p_85612_, float p_85613_) - Overrides:
set
in classAbstractUniform
-
set
- Overrides:
set
in classAbstractUniform
-
setSafe
public final void setSafe(float p_85635_, float p_85636_, float p_85637_, float p_85638_) - Overrides:
setSafe
in classAbstractUniform
-
setSafe
public final void setSafe(int p_85620_, int p_85621_, int p_85622_, int p_85623_) - Overrides:
setSafe
in classAbstractUniform
-
set
public final void set(int p_166699_) - Overrides:
set
in classAbstractUniform
-
set
public final void set(int p_166704_, int p_166705_) - Overrides:
set
in classAbstractUniform
-
set
public final void set(int p_166707_, int p_166708_, int p_166709_) - Overrides:
set
in classAbstractUniform
-
set
public final void set(int p_166748_, int p_166749_, int p_166750_, int p_166751_) - Overrides:
set
in classAbstractUniform
-
set
public final void set(float[] p_85632_) - Overrides:
set
in classAbstractUniform
-
setMat2x2
public final void setMat2x2(float p_166754_, float p_166755_, float p_166756_, float p_166757_) - Overrides:
setMat2x2
in classAbstractUniform
-
setMat2x3
public final void setMat2x3(float p_166643_, float p_166644_, float p_166645_, float p_166646_, float p_166647_, float p_166648_) - Overrides:
setMat2x3
in classAbstractUniform
-
setMat2x4
public final void setMat2x4(float p_166650_, float p_166651_, float p_166652_, float p_166653_, float p_166654_, float p_166655_, float p_166656_, float p_166657_) - Overrides:
setMat2x4
in classAbstractUniform
-
setMat3x2
public final void setMat3x2(float p_166719_, float p_166720_, float p_166721_, float p_166722_, float p_166723_, float p_166724_) - Overrides:
setMat3x2
in classAbstractUniform
-
setMat3x3
public final void setMat3x3(float p_166659_, float p_166660_, float p_166661_, float p_166662_, float p_166663_, float p_166664_, float p_166665_, float p_166666_, float p_166667_) - Overrides:
setMat3x3
in classAbstractUniform
-
setMat3x4
public final void setMat3x4(float p_166669_, float p_166670_, float p_166671_, float p_166672_, float p_166673_, float p_166674_, float p_166675_, float p_166676_, float p_166677_, float p_166678_, float p_166679_, float p_166680_) - Overrides:
setMat3x4
in classAbstractUniform
-
setMat4x2
public final void setMat4x2(float p_166726_, float p_166727_, float p_166728_, float p_166729_, float p_166730_, float p_166731_, float p_166732_, float p_166733_) - Overrides:
setMat4x2
in classAbstractUniform
-
setMat4x3
public final void setMat4x3(float p_166735_, float p_166736_, float p_166737_, float p_166738_, float p_166739_, float p_166740_, float p_166741_, float p_166742_, float p_166743_, float p_166744_, float p_166745_, float p_166746_) - Overrides:
setMat4x3
in classAbstractUniform
-
setMat4x4
public final void setMat4x4(float p_166682_, float p_166683_, float p_166684_, float p_166685_, float p_166686_, float p_166687_, float p_166688_, float p_166689_, float p_166690_, float p_166691_, float p_166692_, float p_166693_, float p_166694_, float p_166695_, float p_166696_, float p_166697_) - Overrides:
setMat4x4
in classAbstractUniform
-
set
- Overrides:
set
in classAbstractUniform
-
set
- Overrides:
set
in classAbstractUniform
-
upload
public void upload() -
uploadAsInteger
private void uploadAsInteger() -
uploadAsFloat
private void uploadAsFloat() -
uploadAsMatrix
private void uploadAsMatrix() -
getLocation
public int getLocation() -
getCount
public int getCount() -
getType
public int getType() -
getIntBuffer
-
getFloatBuffer
-