Method ToSwizzle2D
ToSwizzle2D(uint, uint, uint, uint)
Computes the swizzle offset from the specified coordinates and base-2 logarithms of each dimension.
Declaration
public static uint ToSwizzle2D(uint x, uint y, uint log2Width, uint log2Height)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | x | The x-coordinate, relative to the width. |
| uint | y | The y-coordinate, relative to the height. |
| uint | log2Width | The base-2 logarithm of the width. |
| uint | log2Height | The base-2 logarithm of the height. |
Returns
| Type | Description |
|---|---|
| uint | The swizzle offset. |