Vixen
02b45cc4
csharp
public static class EffectSetWriter

Turns named values into the writes one of a shader's descriptor sets wants.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

One place, because there are now two callers and the rule they share is the whole point: a caller says what a resource is called and Bindings says where it goes. A material names albedo; a frame names environment; neither writes down a binding index, which is the shader's to assign and to renumber when a texture is added above it.

The name is qualified by the shader. That is how the generator interns it — ForwardPlusKeys.Environment is "ForwardPlus.environment" — while the shader's own name for the binding is bare. Bridging those two is the entire job, and it is one line that would otherwise be written once per caller.

Methods (3)

Used by (10)

  • BinVixen.Rendering
  • BindlessFrameTestsVixen.Rendering.Tests
  • IrradianceFieldFillVixen.Rendering
  • MaterialRenderFeatureVixen.Rendering
  • ReflectionTraceFillVixen.Rendering
  • SceneConstantsVixen.Rendering
  • SceneLightingTestsVixen.Rendering.Tests
  • ScreenProbeTraceFillVixen.Rendering
  • SurfaceCacheGatherFillVixen.Rendering
  • SurfaceCacheLightFillVixen.Rendering