cohtml::IAsyncResourceResponse::UserImageData
Description of the properties of the user provided image.
#include <ResourceHandler.h>
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum | AlphaPremultiplicationMode { Premultiplied, NonPremultiplied} Enumeration with the available alpha premultiplication modes. Used for the renderer pipeline state (blend modes) when drawing. |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| UserImageData() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| unsigned | Width |
| unsigned | Height |
| unsigned | ContentRectX |
| unsigned | ContentRectY |
| unsigned | ContentRectWidth |
| unsigned | ContentRectHeight |
| unsigned | ImageHandle Set to a unique ID value greater than 0 to make image a live view. |
| unsigned | SystemOwnerId |
| unsigned | MipsCount |
| renoir::ImageOrigin | Origin |
| renoir::PixelFormat | Format |
| void * | TextureBatchingHint Pointer to a user-defined identifier that will be used to identify user images belonging to the same texture. User images sharing the same TextureBatchingHint will leave only a single image’s memory footprint inside the GPU Memory Tracker. Draws using different user images that share the same TextureBatchingHint can be batched together in a single draw call even when the Texture pointer is different. |
| void * | Texture Pointer to a user-defined user data of the texture. Will be passed as-is to the graphics backend. Draws using different user images that share the same Texture pointer can be batched together in a single draw call. |
| AlphaPremultiplicationMode | AlphaPremultiplication Whether alpha is premultiplied in the image. |
Public Types Documentation
Section titled “Public Types Documentation”enum AlphaPremultiplicationMode
Section titled “enum AlphaPremultiplicationMode”| Enumerator | Value | Description |
|---|---|---|
| Premultiplied | Alpha is premultiplied in the color channels. | |
| NonPremultiplied | Alpha is not premultiplied, it’s independent of the color channels. |
Enumeration with the available alpha premultiplication modes. Used for the renderer pipeline state (blend modes) when drawing.
Public Functions Documentation
Section titled “Public Functions Documentation”function UserImageData
Section titled “function UserImageData”inline UserImageData()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable Width
Section titled “variable Width”unsigned Width;variable Height
Section titled “variable Height”unsigned Height;variable ContentRectX
Section titled “variable ContentRectX”unsigned ContentRectX;variable ContentRectY
Section titled “variable ContentRectY”unsigned ContentRectY;variable ContentRectWidth
Section titled “variable ContentRectWidth”unsigned ContentRectWidth;variable ContentRectHeight
Section titled “variable ContentRectHeight”unsigned ContentRectHeight;variable ImageHandle
Section titled “variable ImageHandle”unsigned ImageHandle;Set to a unique ID value greater than 0 to make image a live view.
variable SystemOwnerId
Section titled “variable SystemOwnerId”unsigned SystemOwnerId;variable MipsCount
Section titled “variable MipsCount”unsigned MipsCount;variable Origin
Section titled “variable Origin”renoir::ImageOrigin Origin;variable Format
Section titled “variable Format”renoir::PixelFormat Format;variable TextureBatchingHint
Section titled “variable TextureBatchingHint”void * TextureBatchingHint;Pointer to a user-defined identifier that will be used to identify user images belonging to the same texture. User images sharing the same TextureBatchingHint will leave only a single image’s memory footprint inside the GPU Memory Tracker. Draws using different user images that share the same TextureBatchingHint can be batched together in a single draw call even when the Texture pointer is different.
variable Texture
Section titled “variable Texture”void * Texture;Pointer to a user-defined user data of the texture. Will be passed as-is to the graphics backend. Draws using different user images that share the same Texture pointer can be batched together in a single draw call.
variable AlphaPremultiplication
Section titled “variable AlphaPremultiplication”AlphaPremultiplicationMode AlphaPremultiplication;Whether alpha is premultiplied in the image.
© 2026 Coherent Labs. All rights reserved.