public readonly record struct TextureCpuImageOne image as a CPU operation sees it: the raw texels, and what they are.
Remarks
⚠ Raw texels rather than a decoded picture, because the one operation this exists for cannot use a picture. Doc 48 § 4.6's Normal → Height integrates a gradient field: it needs the half-floats it was handed, and TexturePixels — which is an encoder on the way to a PNG — would have already rounded them to bytes.
Fields and properties (4)
public TextureFormat FormatWhat the bytes are — the same TextureFormat the plan declared.
public int WidthIts width in texels, at this bake.
public int HeightIts height in texels, at this bake.
public byte[] BytesThe texels, tightly packed, top row first, BytesPerTexel each. An input's are what came off the device; the output's are the buffer to fill, and whatever is in it when Run returns is what is uploaded.
Methods (1)
public TextureCpuImage(TextureFormat Format, int Width, int Height, byte[] Bytes)One image as a CPU operation sees it: the raw texels, and what they are.
Used by (7)
- NormalToHeightOperationVixen.Editor.TextureGraph
- RecordTheInputVixen.Editor.TextureGraph.Tests
- TextureCpuInvocationVixen.Editor.TextureGraph
- TextureNormalToHeightDeviceTestsVixen.Editor.TextureGraph.Tests
- TextureNormalToHeightTestsVixen.Editor.TextureGraph.Tests
- TexturePlanEvaluatorVixen.Editor.TextureGraph
- TransposeRgba8Vixen.Editor.TextureGraph.Tests