@ GPU_TEXTURE_USAGE_SHADER_READ
bool ensure_2d(eGPUTextureFormat format, int2 extent, eGPUTextureUsage usage=GPU_TEXTURE_USAGE_GENERAL, const float *data=nullptr, int mip_len=1)
rctf clipping_uv_bounds
uv area of the texture in screen space.
TextureInfo(TextureInfo &&other)=default
int2 offset() const
return the offset of the texture with the area.
rcti clipping_bounds
area of the texture in screen space.
gpu::Batch * batch
Batch to draw the associated text on the screen.
void ensure_gpu_texture(int2 texture_size)
bool need_full_update
does this texture need a full update.
Texture texture
GPU Texture for a partial region of the image editor.