[bind-uniform] ( texture-unit uniform prefix -- texture-unit' quot )


Vocabulary
gpu.render.private

Inputs
texture-unitan object
uniforman object
prefixan object


Outputs
texture-unit'an object
quotan object


Definition


:: [bind-uniform]
( texture-unit uniform prefix -- texture-unit' quot )
prefix uniform name>> append
hyphens>underscores :> name uniform uniform-type>> :> type
uniform dim>> :> dim uniform name>> reader-word 1quotation
:> value>>-quot value>>-quot type texture-unit name {
{
[ type uniform-type? dim and ]
[ dim [bind-uniform-array] ]
}
{
[ type uniform-type? dim not and ]
[ [bind-uniform-value] ]
}
[ dim [bind-uniform-struct] ]
} cond ;