PushConstant
Inheritance: java.lang.Object
public class PushConstant
Un utilitaire pour fournir des données au shader via une constante push.
Constructeurs
| Constructeur | Description |
|---|---|
| PushConstant() | Constructeur de PushConstant |
Méthodes
| Méthode | Description |
|---|---|
| commit(int stage, ICommandList commandList) | Valide les données préparées dans le pipeline graphique. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| write(FMatrix4 mat) | Écrire la matrice dans la constante |
| write(FVector3 vec) | Écrire un vecteur à 3 composantes dans la constante |
| write(FVector4 vec) | Écrire un vecteur à 4 composantes dans la constante |
| write(float f) | Écrire une valeur float dans la constante |
| write(float x, float y, float z, float w) | Écrire un vecteur à 4 composantes dans la constante |
| write(int n) | Écrire une valeur int dans la constante |
PushConstant()
public PushConstant()
Constructeur de PushConstant
commit(int stage, ICommandList commandList)
public PushConstant commit(int stage, ICommandList commandList)
Valide les données préparées dans le pipeline graphique.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| étape | int | |
| commandList | ICommandList |
Returns: PushConstant
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |
write(FMatrix4 mat)
public PushConstant write(FMatrix4 mat)
Écrire la matrice dans la constante
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| mat | FMatrix4 | La matrice à écrire |
Returns: PushConstant
write(FVector3 vec)
public PushConstant write(FVector3 vec)
Écrire un vecteur à 3 composantes dans la constante
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| vec | FVector3 |
Returns: PushConstant
write(FVector4 vec)
public PushConstant write(FVector4 vec)
Écrire un vecteur à 4 composantes dans la constante
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| vec | FVector4 |
Returns: PushConstant
write(float f)
public PushConstant write(float f)
Écrire une valeur float dans la constante
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| f | float |
Returns: PushConstant
write(float x, float y, float z, float w)
public PushConstant write(float x, float y, float z, float w)
Écrire un vecteur à 4 composantes dans la constante
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| x | float | |
| y | float | |
| z | float | |
| w | float |
Returns: PushConstant
write(int n)
public PushConstant write(int n)
Écrire une valeur int dans la constante
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| n | int |
Returns: PushConstant