Show / Hide Table of Contents

Struct TextureData

Holds Texture Dimensions and Pixel Data

Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct TextureData

Properties

Height

Texture Height in Pixels

Declaration
public uint Height { get; set; }
Property Value
Type Description
System.UInt32

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 { get; set; }
Property Value
Type Description
Vector4[]

Width

Texture Width in Pixels

Declaration
public uint Width { get; set; }
Property Value
Type Description
System.UInt32
In This Article
Back to top yak2D - Alex Paterson