PushConstant

Inheritance: java.lang.Object

public class PushConstant

Un utilitaire pour fournir des données au shader via une constante push.

Constructeurs

ConstructeurDescription
PushConstant()Constructeur de PushConstant

Méthodes

MéthodeDescription
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ètreTypeDescription
étapeint
commandListICommandList

Returns: PushConstant

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParamètreTypeDescription
arg0java.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ètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int

write(FMatrix4 mat)

public PushConstant write(FMatrix4 mat)

Écrire la matrice dans la constante

Parameters:

ParamètreTypeDescription
matFMatrix4La matrice à écrire

Returns: PushConstant

write(FVector3 vec)

public PushConstant write(FVector3 vec)

Écrire un vecteur à 3 composantes dans la constante

Parameters:

ParamètreTypeDescription
vecFVector3

Returns: PushConstant

write(FVector4 vec)

public PushConstant write(FVector4 vec)

Écrire un vecteur à 4 composantes dans la constante

Parameters:

ParamètreTypeDescription
vecFVector4

Returns: PushConstant

write(float f)

public PushConstant write(float f)

Écrire une valeur float dans la constante

Parameters:

ParamètreTypeDescription
ffloat

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ètreTypeDescription
xfloat
yfloat
zfloat
wfloat

Returns: PushConstant

write(int n)

public PushConstant write(int n)

Écrire une valeur int dans la constante

Parameters:

ParamètreTypeDescription
nint

Returns: PushConstant