Vixen
dd8b0a81
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.Editor.TextureGraph.Tests
  • TextureAspectDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureBlendDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureBudgetDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureCellMetricTestsVixen.Editor.TextureGraph.Tests
  • TextureColourDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureCompoundBakeDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureCpuOpDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureEvaluationCostTestsVixen.Editor.TextureGraph.Tests
  • TextureExternalGraphDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureExternalUsageTestsVixen.Editor.TextureGraph.Tests
  • TextureFilterDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureFrameLoopTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphPreviewVixen.Editor.Texturing
  • TextureGraphPreviewDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphPreviewsVixen.Editor.TextureGraph
  • TextureGraphRunnerVixen.Cli
  • TextureHarnessPatternTestsVixen.Editor.TextureGraph.Tests
  • TextureKernelSabotageTestsVixen.Editor.TextureGraph.Tests
  • TextureLevelDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureMetalReflectanceTestsVixen.Editor.TextureGraph.Tests
  • TextureMixDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureNormalToHeightDeviceTestsVixen.Editor.TextureGraph.Tests
  • TexturePlacementDeviceTestsVixen.Editor.TextureGraph.Tests
  • TexturePlacementParameterDeviceTestsVixen.Editor.TextureGraph.Tests
  • TexturePlanDeviceTestsVixen.Editor.TextureGraph.Tests
  • TexturePlanEvaluatorVixen.Editor.TextureGraph
  • TexturePlanKernelDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureProjectionDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureQueueTestsVixen.Editor.TextureGraph.Tests
  • TextureResampleFilterTestsVixen.Editor.TextureGraph.Tests