Handbook
Glossary
texture-data-size ( tdt level -- size )
Vocabulary
gpu
.
textures
Inputs
tdt
a
texture-data-target
level
an
integer
Outputs
size
an
integer
Word description
Returns the size in bytes of the image data allocated for the
level
th level of detail of a
texture-data-target
.
Definition
USING:
gpu.textures.private
images
kernel
math
;
IN:
gpu.textures
:
texture-data-size
( tdt level -- size )
[
texture-dim
?product
]
[
drop
texture-object
bytes-per-pixel
]
2bi
*
;
inline