Vixen
5cf01f31
csharp
public sealed class TextureBake

A plan that has been evaluated, and the textures it produced.

Read the guide page for this →

Remarks

⚠ It owns every texture the evaluation created, including the pooled intermediates. Disposing destroys them; not disposing leaks a bake's worth of images, which at 2K is tens of megabytes per plan. An output image and an intermediate are the same kind of thing here — the plan's Outputs is what stops the pool from handing an output's slot to a later op, and nothing about the handle says which it was.

Fields and properties (5)

  • public ICommandSubmitter Queue

    The queue the evaluation ran on, and the only one this bake's textures are touched from.

  • public TexturePlan Plan

    What was evaluated.

  • public ImmutableArray<string> Warnings

    What this bake drew differently from the graph, and drew anyway.

  • public TexturePoolSchedule Schedule

    Where each image ended up.

  • public int Dispatches

    How many dispatches it took — one per op, and a way to see that none was skipped.

Methods (4)

  • public TextureHandle TextureOf(int image)

    The texture one image is in.

  • public Bitmap Read(int image)

    Reads one image back as eight-bit RGBA.

  • public void Save(int image, string path)

    Writes one image to a PNG.

  • public void Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Used by (51, showing 40)

  • BakedMaterialImageTestsVixen.Graphics.Golden.Tests
  • FilterLayerTestsVixen.Editor.Texturing.Tests
  • LayerCoverageDeviceTestsVixen.Editor.Texturing.Tests
  • LayerStackBakeDeviceTestsVixen.Editor.Texturing.Tests
  • LayerStackPreviewVixen.Editor.Texturing
  • MaskStackTestsVixen.Editor.Texturing.Tests
  • MaterialBakeRouteVixen.Editor.Texturing
  • SplatCoverageDeviceTestsVixen.Editor.Texturing.Tests
  • TextureAnalysisDeviceTestsVixen.TextureGraph.Tests
  • TextureAspectDeviceTestsVixen.TextureGraph.Tests
  • TextureBlendDeviceTestsVixen.TextureGraph.Tests
  • TextureBudgetDeviceTestsVixen.TextureGraph.Tests
  • TextureCellMetricTestsVixen.TextureGraph.Tests
  • TextureColourDeviceTestsVixen.TextureGraph.Tests
  • TextureCompoundBakeDeviceTestsVixen.TextureGraph.Tests
  • TextureCpuOpDeviceTestsVixen.TextureGraph.Tests
  • TextureEvaluationCostTestsVixen.TextureGraph.Tests
  • TextureExternalGraphDeviceTestsVixen.TextureGraph.Tests
  • TextureExternalUsageTestsVixen.TextureGraph.Tests
  • TextureFilterDeviceTestsVixen.TextureGraph.Tests
  • TextureFrameLoopTestsVixen.TextureGraph.Tests
  • TextureGraphDeviceTestsVixen.TextureGraph.Tests
  • TextureGraphPreviewVixen.Editor.Texturing
  • TextureGraphPreviewDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphPreviewsVixen.Editor.TextureGraph
  • TextureGraphRunnerVixen.Cli
  • TextureHarnessPatternTestsVixen.TextureGraph.Tests
  • TextureKernelSabotageTestsVixen.TextureGraph.Tests
  • TextureLevelDeviceTestsVixen.TextureGraph.Tests
  • TextureMetalReflectanceTestsVixen.TextureGraph.Tests
  • TextureMixDeviceTestsVixen.TextureGraph.Tests
  • TextureNormalToHeightDeviceTestsVixen.TextureGraph.Tests
  • TexturePlacementDeviceTestsVixen.TextureGraph.Tests
  • TexturePlacementParameterDeviceTestsVixen.TextureGraph.Tests
  • TexturePlanDeviceTestsVixen.TextureGraph.Tests
  • TexturePlanEvaluatorVixen.TextureGraph
  • TexturePlanKernelDeviceTestsVixen.TextureGraph.Tests
  • TextureProjectionDeviceTestsVixen.TextureGraph.Tests
  • TextureQueueTestsVixen.TextureGraph.Tests
  • TextureResampleFilterTestsVixen.TextureGraph.Tests