nw::lyt::TextureInfo::Set Member Function
void Set(
u32 texObject,
uptr physicalAddress,
const TexSize & size,
const TexSize & realSize,
TexFormat format
);
| Name | Description | |
|---|---|---|
| texObject | The texture object handle. | |
| physicalAddress | The physical address of the texture image. | |
size |
The size of the area used (width and height). | |
| realSize | The texture size (width and height). | |
| format | The texture format. |
Sets texture information.
This function sets the specified value.
Use it when using part of a texture image. The width and height given by realSize must be powers of two.
The texture image must be placed in device memory.
texObject is used for normal drawing.
physicalAddress is used when drawing using Drawer.
CONFIDENTIAL