GPU Texture Utilities (gpu.texture)
This module provides utils for textures.
- gpu.texture.from_image(image)
Get GPUTexture corresponding to an Image datablock. The GPUTexture memory is shared with Blender. Note: Colors read from the texture will be in scene linear color space and have premultiplied or straight alpha matching the image alpha mode.
- Parameters
image (
bpy.types.Image
) – The Image datablock.- Returns
The GPUTexture used by the image.
- Return type