Vixen
dd8b0a81
csharp
public readonly record struct TextureCpuImage

One image as a CPU operation sees it: the raw texels, and what they are.

Read the guide page for this →

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 Format

    What the bytes are — the same TextureFormat the plan declared.

  • public int Width

    Its width in texels, at this bake.

  • public int Height

    Its height in texels, at this bake.

  • public byte[] Bytes

    The 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