Package WildMagic.LibGraphics.Shaders
Class SamplerInformation
- java.lang.Object
-
- WildMagic.LibGraphics.Shaders.SamplerInformation
-
- All Implemented Interfaces:
java.io.Serializable
public class SamplerInformation extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
m_iBaseRegister
The base register for the program.private int
m_iTextureUnit
Sampler texture unit -- matches shader program.private java.lang.String
m_kName
Sampler name -- matches shader program sampler name.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SamplerInformation(java.lang.String rkName, int iTextureUnit, int iBaseRegister)
Construction and destruction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Delete memoryint
GetBaseRegister()
java.lang.String
GetName()
Return name of sampler.int
GetTextureUnit()
Return sampler texture unit.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_kName
private java.lang.String m_kName
Sampler name -- matches shader program sampler name.
-
m_iTextureUnit
private int m_iTextureUnit
Sampler texture unit -- matches shader program.
-
m_iBaseRegister
private int m_iBaseRegister
The base register for the program.
-
-
Constructor Detail
-
SamplerInformation
public SamplerInformation(java.lang.String rkName, int iTextureUnit, int iBaseRegister)
Construction and destruction. The name, sampler type, and texture unit are stored in the shader program files. The dimension is deduced from the sampler type. The sampler unit is created when loading a shader program. The filter mode and wrap modes are specific to a texture object and stored by such an object.- Parameters:
rkName
- Sampler name.eType
- Sampler type.iTextureUnit
- Sampler texture unit.iBaseRegister
- the base register for the program.
-
-
Method Detail
-
dispose
public void dispose()
Delete memory
-
GetBaseRegister
public final int GetBaseRegister()
- Returns:
- the base register for the program.
-
GetName
public final java.lang.String GetName()
Return name of sampler.- Returns:
- name of sampler.
-
GetTextureUnit
public final int GetTextureUnit()
Return sampler texture unit.- Returns:
- sampler texture unit.
-
-