Handbook
Glossary
compressed-texture-data-size ( tdt level -- size )
GPU-accelerated rendering
ยป
Texture objects
Prev:
update-compressed-texture ( tdt level loc dim compressed-data -- )
Next:
read-compressed-texture ( tdt: texture-data-target level: integer -- byte-array: byte-array )
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 memory allocated for the compressed texture data making up the
level
th level of detail of the given
texture-data-target
.
Definition
USING:
gpu.textures.private
kernel
opengl.gl
opengl.textures
;
IN:
gpu.textures
:
compressed-texture-data-size
( tdt level -- size )
[
[
bind-tdt
drop
]
[
texture-data-gl-target
]
bi
]
dip
GL_TEXTURE_COMPRESSED_IMAGE_SIZE
get-texture-int
;
inline