PushConstant
Inheritance: java.lang.Object
public class PushConstant
Una utilidad para proporcionar datos al shader mediante una constante push.
Constructores
| Constructor | Descripción |
|---|---|
| PushConstant() | Constructor de PushConstant |
Métodos
| Método | Descripción |
|---|---|
| commit(int stage, ICommandList commandList) | Confirma los datos preparados al pipeline gráfico. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| write(FMatrix4 mat) | Escribe la matriz en la constante |
| write(FVector3 vec) | Escribe un vector de 3 componentes en la constante |
| write(FVector4 vec) | Escribe un vector de 4 componentes en la constante |
| write(float f) | Escribe un valor float en la constante |
| write(float x, float y, float z, float w) | Escribe un vector de 4 componentes en la constante |
| write(int n) | Escribe un valor int en la constante |
PushConstant()
public PushConstant()
Constructor de PushConstant
commit(int stage, ICommandList commandList)
public PushConstant commit(int stage, ICommandList commandList)
Confirma los datos preparados al pipeline gráfico.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| etapa | int | |
| commandList | ICommandList |
Returns: PushConstant
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| 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:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long | |
| arg1 | int |
write(FMatrix4 mat)
public PushConstant write(FMatrix4 mat)
Escribe la matriz en la constante
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| mat | FMatrix4 | La matriz a escribir |
Returns: PushConstant
write(FVector3 vec)
public PushConstant write(FVector3 vec)
Escribe un vector de 3 componentes en la constante
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| vec | FVector3 |
Returns: PushConstant
write(FVector4 vec)
public PushConstant write(FVector4 vec)
Escribe un vector de 4 componentes en la constante
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| vec | FVector4 |
Returns: PushConstant
write(float f)
public PushConstant write(float f)
Escribe un valor float en la constante
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| f | float |
Returns: PushConstant
write(float x, float y, float z, float w)
public PushConstant write(float x, float y, float z, float w)
Escribe un vector de 4 componentes en la constante
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| x | float | |
| y | float | |
| z | float | |
| w | float |
Returns: PushConstant
write(int n)
public PushConstant write(int n)
Escribe un valor int en la constante
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| n | int |
Returns: PushConstant