Struct TextureData
Holds Texture Dimensions and Pixel Data
Inherited Members
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct TextureData
Properties
Height
Texture Height in Pixels
Declaration
public uint Height { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
Pixels
Texture Pixel Data as normalised four component RGBA floats when used for texture creation or reading RGBA texture data If used to pass Float32 Pixel data back from the GPU, then the first component is used only
Declaration
public Vector4[] Pixels { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Vector4[] |
Width
Texture Width in Pixels
Declaration
public uint Width { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| uint |