gpu.shaders: use "counter" instead of reinventing it
parent
12f187d0eb
commit
181c45209f
|
@ -301,13 +301,11 @@ M: f (verify-feedback-format)
|
||||||
dup 1 = [ drop ] [ 2array ] if ;
|
dup 1 = [ drop ] [ 2array ] if ;
|
||||||
|
|
||||||
SYMBOL: padding-no
|
SYMBOL: padding-no
|
||||||
padding-no [ 0 ] initialize
|
|
||||||
|
|
||||||
: padding-name ( -- name )
|
: padding-name ( -- name )
|
||||||
"padding-"
|
"padding-"
|
||||||
padding-no get number>string append
|
padding-no counter number>string append
|
||||||
"(" ")" surround
|
"(" ")" surround ;
|
||||||
padding-no inc ;
|
|
||||||
|
|
||||||
: vertex-attribute>struct-slot ( vertex-attribute -- struct-slot-spec )
|
: vertex-attribute>struct-slot ( vertex-attribute -- struct-slot-spec )
|
||||||
[ name>> [ padding-name ] unless* ]
|
[ name>> [ padding-name ] unless* ]
|
||||||
|
|
Loading…
Reference in New Issue